Commit Graph

17689 Commits (546fcdfefeb704ae73c4397bcccfb8d35d014376)

Author SHA1 Message Date
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
Larry Garfield 40e5531952 Enforce the Drupal RouteCompiler for all routes dumped with our dumper. 2012-10-01 16:57:18 -07:00
Larry Garfield e9a95aa1fb Add a skeleton for a Path matcher.
The PathMatcher matches against the database table structure generated by the
MatcherDumper.  As of this commit the lookup is not yet implemented. It's still
in testing.
2012-10-01 16:57:18 -07:00
Larry Garfield db11de09c8 Rename UrlMatcherDumper to MatcherDumper, since we use more than just the Url for matching. 2012-10-01 16:57:18 -07:00
Larry Garfield 806ff4acc8 Add a mechanism for a NestedRouter.
A Nested router is a series of partial routers, each of which whittle down a RouteCollection
until it is left with a single matching route.  That single route is the final route that
matches the request.
2012-10-01 16:57:18 -07:00
Larry Garfield b0f90a1046 Add a basic framework for stackable partial matching. 2012-10-01 16:57:17 -07:00
Larry Garfield 52fd27522b Convert tests to namespaced format. 2012-10-01 16:57:17 -07:00
Larry Garfield 3019c6f74d Convert WebTests to UnitTests. 2012-10-01 16:57:17 -07:00
Larry Garfield 81c3bf6dff Make CompiledRoute its own class rather than extending Symfony's CompiledRoute. 2012-10-01 16:57:17 -07:00
Larry Garfield f14521489a Add ablity to dump a route collection to the database. 2012-10-01 16:57:17 -07:00
Larry Garfield 2ed208b1e0 Add pattern outline generation to the route compilation. 2012-10-01 16:57:17 -07:00
Larry Garfield a524a35d1d Add basic route compilation mechanism. 2012-10-01 16:57:17 -07:00
Larry Garfield 2c79c025d2 Copy in old dumping logic. Still being refactored. 2012-10-01 16:57:17 -07:00
Larry Garfield eba77ad5c6 Add a basic dumper object.
This is not yet complete, but it can have routes added to it and retrieved from it.
2012-10-01 16:57:17 -07:00
Jennifer Hodgdon 6e78c49b5a Issue #1797940 by Lars Toomre: Properly document helper function in language tests 2012-10-01 15:10:40 -07:00
Jennifer Hodgdon 1518a9434e Issue #1797360 by xjm: Remove t() from test assertions in language module 2012-10-01 15:08:28 -07:00
Jennifer Hodgdon d57f04d3f8 Issue #1741386 by andypost, Lars Toomre: Remove remaining t() in test assertions in book module 2012-10-01 14:55:01 -07:00
Jennifer Hodgdon f1c7eec635 Issue #1797120 by Lars Toomre: Remove a couple more t() uses from system tests A-C 2012-10-01 14:46:22 -07:00
Jennifer Hodgdon 162314d723 Issue #1798954 by Lars Toomre: Remove t() from test asserts in Action module 2012-10-01 14:40:55 -07:00
Jennifer Hodgdon 59a51ae15d Issue #1797366 by xjm: Remove t() from test assertions in menu module 2012-10-01 14:36:17 -07:00
Jennifer Hodgdon 4a0b83bff3 Issue #1797372 by xjm: Remove t() from assert messages in path module tests 2012-10-01 14:33:41 -07:00
Jennifer Hodgdon c259b8ec52 Issue #1797520 by Lars Toomre: Remove t() from test assertions in statistics module 2012-10-01 13:24:55 -07:00
Jennifer Hodgdon 31f0b95cbf Issue #1797510 by Lars Toomre: Remove t() from assertions in shortcut module 2012-10-01 13:20:51 -07:00
Jennifer Hodgdon 34929bf74d Issue #1797516 by Lars Toomre: Remove t() from test assertion messages in syslog module 2012-10-01 13:15:33 -07:00
Jennifer Hodgdon eaee4510c4 Issue #1798390 by Lars Toomre: Remove t() from test assertions in xmlrpc module 2012-10-01 13:13:00 -07:00
Jennifer Hodgdon 207f6d7b29 Issue #1798960 by Lars Toomre: Remove t() from test assert in Ban module 2012-10-01 13:04:37 -07:00
Jennifer Hodgdon 8e2d696c95 Issue #1797452 by Lars Toomre: Remove t() from system tests starting with M 2012-10-01 13:01:17 -07:00
Jennifer Hodgdon e7ac42950d Issue #1791090 by Ivan Zugec: Remove references to specific admin paths from aggregator function docs 2012-10-01 12:24:47 -07:00
catch 2d264b5cbb Issue #1145080 by David_Rothstein, Noe_, drewish, hosef, bigjim: Fixed SelectQuery::countQuery() incompatible with UNION queries. 2012-10-01 14:14:04 +01:00
catch c37ef76d66 Issue #1751100 by chx, jerdavis: Bump minimum version of php required to 5.3.5. 2012-10-01 11:41:45 +01:00