larowlan
0703718bcd
Various documentation and whitespace fixes.
2012-10-01 17:01:20 -07:00
effulgentsia
7019a0c1ca
Ensure router.builder and other services are available during upgrade.
...
This is mostly temporary measures to work around bootstrap circular
dependencies until those are fixed.
2012-10-01 17:01:20 -07:00
effulgentsia
6779c0794e
Fix redirect user_page to include current language.
2012-10-01 17:01:19 -07:00
Lin Clark
fdcd2d2a73
Fixed old style subrequests by running through drupal_render_page.
2012-10-01 17:01:19 -07:00
Lin Clark
ea8d2911b7
Fixed RouterTest fail that results from /user redirect.
2012-10-01 17:01:19 -07:00
Larry Garfield
acd7dd9c16
Switch to RedirectResponse for the /user page.
2012-10-01 16:57:25 -07:00
Lin Clark
26b46f8d72
Switch user_page to redirect to prevent router test failures.
2012-10-01 16:57:24 -07:00
Larry Garfield
e2c30c933b
Adjust ViewSubscriber's subrequest handling again for render API.
2012-10-01 16:57:24 -07:00
Larry Garfield
67fdbebdaf
Don't render subrequest as a full page, just pass them through normal drupal_render().
2012-10-01 16:57:24 -07:00
Larry Garfield
8504d42979
Allow a trailing / to still match as if it weren't there.
2012-10-01 16:57:24 -07:00
Larry Garfield
fa58bbefad
Documentation fixes.
2012-10-01 16:57:24 -07:00
Larry Garfield
ce54838752
Fix handling of default values for placeholders.
...
In order to make default placeholders work, we had to modify the fit and path outline
routines to ignore them. That also necessitated switching back to the original
outline/ancestors logic from Drupal 7, which with a very slight tweak to the masks
and '/'-prefix on paths still works just as it should.
2012-10-01 16:57:24 -07:00
Larry Garfield
fac9b6ed0e
Make use of the compiled regex when filtering routes by path, to account for default values and regex filters on placeholders.
2012-10-01 16:57:23 -07:00
Larry Garfield
8306c5a32a
Non-working tests to demonstrate that default values don't work yet.
2012-10-01 16:57:23 -07:00
Larry Garfield
a3deb0349d
Properly render legacy subrequests.
2012-10-01 16:57:23 -07:00
Larry Garfield
80bc8856f5
Remove long-dead code.
2012-10-01 16:57:23 -07:00
Larry Garfield
1d8036319a
Add unit tests for FirstEntryFinalMatcher.
2012-10-01 16:57:23 -07:00
Larry Garfield
02fd4b2334
Port the regex path matching from Symfony to our CompiledRoute class so that we can match placeholder-using paths.
2012-10-01 16:57:23 -07:00
Larry Garfield
820a633cce
Documentation fixes.
2012-10-01 16:57:23 -07:00
Larry Garfield
867e7707f5
Pass the _content callback as a proper controller through HttpKernel::forward().
2012-10-01 16:57:23 -07:00
Larry Garfield
f6bf963097
Move router rebuilding into an object so we can break it up more easily.
2012-10-01 16:57:22 -07:00
Larry Garfield
404e74e187
Make the new HtmlPageController Container-aware.
2012-10-01 16:57:22 -07:00
Larry Garfield
b9d5689987
Introduce a default controller for pages with a _content request attribute.
2012-10-01 16:57:22 -07:00
Larry Garfield
0bd8eed2cc
Minor fixups in router_rebuild().
2012-10-01 16:57:22 -07:00
Katherine Bailey
89e4c42bbd
Fixing the update number in system.install
2012-10-01 16:57:22 -07:00
Katherine Bailey
c17d7dce9d
Updating some docblocks
2012-10-01 16:57:22 -07:00
Katherine Bailey
f368409fcc
The database service has been added to the DIC in core so ended up being duplicated here
2012-10-01 16:57:22 -07:00
Larry Garfield
dca406aa64
Only try to rebuild the router table if the dumper is actually available.
2012-10-01 16:57:21 -07:00
Larry Garfield
684f00dcc1
Add a functional test for the new router.
2012-10-01 16:57:21 -07:00
Larry Garfield
7139f0253c
Add a new-router rebuild step to the global flush operation.
2012-10-01 16:57:21 -07:00
Larry Garfield
c2e1a308de
Flush the dumper after each use, so that we don't end up re-saving old routes.
2012-10-01 16:57:21 -07:00
Larry Garfield
b1fd850de2
Register the MatcherDumper with the DIC.
2012-10-01 16:57:21 -07:00
Larry Garfield
d4641c4a5b
Don't count the leading / as a part when counting the elements in the path.
2012-10-01 16:57:21 -07:00
Larry Garfield
2bf5b4d17e
Wire the new PartialMatcher and PathMatcher into the routing configuration.
2012-10-01 16:57:21 -07:00
Larry Garfield
ac10076ccf
Wire the new PartialMatcher and PathMatcher into the routing configuration.
2012-10-01 16:57:21 -07:00
Larry Garfield
a6d59f6d18
Run LegacyUrlMatcher through ChainMatcher. That necessitates making ChainMatcher temporarily context-aware.
2012-10-01 16:57:20 -07:00
Larry Garfield
1bf98066ba
Convert LegacyUrlMatcher to use RequestMatcherInterface rather than UrlMatcherInterface.
2012-10-01 16:57:20 -07:00
Larry Garfield
41586439a4
Remove extraneous t() calls from assertion messages.
2012-10-01 16:57:20 -07:00
Larry Garfield
66a2409303
Add a basic ChainMatcher, modeled on Symfony CMF's ChainRouter.
2012-10-01 16:57:20 -07:00
Larry Garfield
5c6979bb1d
Add start of a router_test module for hooking in the new routing system.
2012-10-01 16:57:20 -07:00
Larry Garfield
e31cf8274d
Add tests for the path matcher, both outline-based paths and not-found paths.
2012-10-01 16:57:20 -07:00
Larry Garfield
8ae0b323f2
Don't serialize the compiled route object along with the route.
2012-10-01 16:57:20 -07:00
Larry Garfield
5701e622f6
Split PartialMatcher tests out into their own test class.
2012-10-01 16:57:20 -07:00
Larry Garfield
f0c3b571e7
Make the mock FinalMatcher a real matcher, since it's useful on its own.
2012-10-01 16:57:19 -07:00
Larry Garfield
7a8d3df9a6
Make the HttpMatcher throw a MethodNotAllowedException if it filters out all possible routes.
2012-10-01 16:57:19 -07:00
Larry Garfield
0e4b90e09b
Add a base class for partial matchers.
2012-10-01 16:57:19 -07:00
Larry Garfield
329fde3f41
Document that PartialMatcherInterface::setCollection() is chainable.
2012-10-01 16:57:18 -07:00
Larry Garfield
a3e002dbe4
Fix documentation to clarify that a FinalMatcher returns attributes, not a Route or RouteCollection.
2012-10-01 16:57:18 -07:00
Larry Garfield
d372d6de99
Complete exact-path matching.
2012-10-01 16:57:18 -07:00
Larry Garfield
f55ab1aff6
Move more fixture logic to the fixture class.
2012-10-01 16:57:18 -07:00