Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC RoutingAuto integration #1989

Closed
wants to merge 2 commits into from
Closed

POC RoutingAuto integration #1989

wants to merge 2 commits into from

Conversation

dantleech
Copy link
Contributor

This is currently an experimental branch for integrating the Symfony CMF RoutingAuto component.

Practically it:

  • Would remove the RLP strategy things.
  • Remove the "Legacy" mapping of the URI (segment) as a property.
  • (but retain it as a content type to allow positioning and placement in Structure template).
  • ...
  • Would probably remove the "history/restore" functionality, which, IIRC, we discussed and concluded that it could not work.
  • Will fix the current path history / redirect system - current system is broken because each old path references the next least eldest path in a cascading domino game of death. We should reference the content.

Other benefits:

  • Allow routes to be fully automatically generated, e.g. imagine /products/my-product-name
  • Make the RouteDocument more of a thing, paving the way to do things like {{ path(document) }} for path generation in Twig templates / etc.
  • .. more ..

'path' => '/cmf/sulu_io/contents/foo' . $index
));

$this->manager->flush();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can or cannot keep this - however it clocks in at 20op/s on my machine (would obviously be faster if we didn't flush on each op)

$this->assertTrue($route->isRedirect());

// See https://github.com/symfony-cmf/RoutingAuto/issues/67
$this->markTestSkipped('TODO: Bug in RoutingAuto component, see link above.');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a bug in RoutingAuto here.

@dantleech
Copy link
Contributor Author

@chirimoya one thing we will need to deal with is "caching" the URLs in the content for the menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants