Spike: deleting routing from cache directory

Description

Background

The page controller had a clear routing cache method that deletes the url mather and generator from the current cache directory. This should not be done ever as this could break stuff even if only for one request.

Requirements

Find another way to apply page URL changes.

Technical tasks

None

Deployment actions

None

Activity

Show:
API
November 3, 2017, 4:04 PM

.Notificatie urenschatting gestuurd naar Integrated Marijn (marijn@e-active.nl)

API
November 6, 2017, 9:25 AM

.Schatting van 12.5 uur is geaccepteerd door Integrated Marijn (in opdracht ingevoerd door Marijn Otte).

Jan Sanne Mulder
February 20, 2018, 2:11 PM

Vervangen door de CMF Dynamic Router.

https://symfony.com/doc/current/cmf/components/routing/dynamic.html
https://symfony.com/doc/current/cmf/bundles/routing/dynamic_customize.html
https://symfony.com/doc/current/cmf/bundles/routing/index.html
https://symfony.com/doc/current/cmf/components/routing/index.html

Het verwijderen van de router cache gebeurd in de service.

Integrated\Bundle\PageBundle\Services\RouteCache (integrated_page.services.route_cache)

De service wordt gebruikt op in de volgende classes.

  • Integrated\Bundle\PageBundle\Controller\ContentTypePageController (container)

  • Integrated\Bundle\PageBundle\Controller\PageController (container)

  • Integrated\Bundle\PageBundle\EventListener\ContentTypeChangedListener (constructor injection)

Vervolgens wordt de routing gegenereerd door twee router regels in het bestand.

src/Bundle/WebsiteBundle/Resources/config/routing.xml

De routing types "integrated_website_page" en "integrated_website_content_type_page" worden geladen door

  • Integrated\Bundle\WebsiteBundle\Routing\ContentTypePageLoader (integrated_website_content_type_page)

  • Integrated\Bundle\WebsiteBundle\Routing\PageLoader (integrated_website_page)

API
February 20, 2018, 2:33 PM

.Notificatie oplevering gestuurd naar Integrated Marijn (marijn@e-active.nl)

Assignee

Unassigned

External issue ID

None

Client

Integrated Marijn

Min. hours

None

Dev hour estimate

None

Epic Link

Sprint

None

Fix versions

Configure