Jordi Boggiano
418d6a0ead
[Routing] Fix syntax error when dumping routes with single quotes in the requirements or pattern
2011-06-29 03:40:17 +02:00
Jordi Boggiano
2b5e22d961
[Routing] Fix ApacheDumper when a space appears in a default value
2011-06-29 03:40:13 +02:00
Jordi Boggiano
761724ae57
[Routing] Adjust urlescaping rules, fixes #752
...
Only + and % are now encoded in generated routes, since they are the only characters that, if not encoded, could cause problems/conflicts when decoded. Namely + turns into a space, and % followed by numbers could do funky things.
The matcher decodes everything which works since nothing will have %NN without being escaped, and + are escaped as well.
2011-06-29 03:39:54 +02:00
Fabien Potencier
610c1cc987
[Routing] removed AnnotationGlobLoader
2011-06-17 18:18:03 +02:00
Fabien Potencier
c536797cc9
[Routing] removed an optimization as it does not always work as expected
2011-06-17 14:28:23 +02:00
stloyd
edf4b87dcb
Add missing "tearDown" functions, and some missing variable declaration (this saves for me almost 20MB when run all tests)
...
Force AsseticBundle tests to use TestCase
Fix test for DoctrineBundle to use TestCase
2011-06-16 15:06:36 +02:00
Fabien Potencier
46a93c376c
[Routing] optimized PHP dumper when the parent prefix is the same for several adjacent collections (avoids the same test to be made)
2011-06-15 09:36:36 +02:00
Fabien Potencier
1438f6be04
[Routing] added some unit tests for latest merge (and fixed a bug ;))
2011-06-15 09:22:10 +02:00
Pascal Borreli
f5eaa404c7
[Tests] Fixed typos
2011-06-12 20:52:53 +00:00
Fabien Potencier
8d58826085
[Routing] fixed unit tests for previous commit
2011-06-11 07:33:55 +02:00
Fabien Potencier
17cd08dc6c
fixed CS
2011-06-08 19:56:59 +02:00
Fabien Potencier
c72537da6b
[Routing] fixed route matching when the prefix contains variables
2011-06-04 19:45:54 +02:00
Fabien Potencier
544b6ca6aa
Revert "fixed tests"
...
This reverts commit 7dc3af6036
.
2011-06-04 19:24:45 +02:00
Fabien Potencier
7dc3af6036
fixed tests
2011-06-04 19:23:43 +02:00
Fabien Potencier
c561f4f0c0
[Routing] changed HTTP method to always be uppercased (to be consistent with HttpFoundation/Request)
2011-06-04 19:06:39 +02:00
Fabien Potencier
f9ffdf5b33
[Routing] added proper support for the HEAD method
2011-06-04 12:47:38 +02:00
Fabien Potencier
9eae7e54ca
[Routing] removed unneeded code in the dumper Apache rules
2011-06-04 12:46:19 +02:00
Ryan Weaver
c867dccbed
[Routing] Adding a failing test related to URL generation with optional parameters
2011-06-02 20:22:33 -05:00
Fabien Potencier
2cd04547fd
[Routing] renamed some exceptions
2011-05-17 16:52:02 +02:00
alexandresalome
1d6b94189b
[Routing] Use routing exceptions in the dumper and add tests.
2011-05-17 11:31:47 +02:00
Fabien Potencier
02e77ec4e3
[Routing] moved Matcher exceptions
2011-05-17 10:11:27 +02:00
alexandresalome
07b7dc0c86
[Routing] Change the Exception namespacing + base class for every exception + update PHPDoc
2011-05-13 17:46:31 +02:00
alexandresalome
05d9e74293
[Routing] Add specific exceptions for the UrlGenerator
...
When generating URL, thrown exceptions are InvalidArgumentException and
distinction of errors is quite difficult. This modification brings different
exceptions for different cases
2011-05-13 16:59:37 +02:00
Fabien Potencier
fe9ef5c68b
[Routing] fixed deep nested route collections ( closes #770 )
2011-05-04 23:29:47 +02:00
Fabien Potencier
27d02a7d4a
[Routing] fixed regression (/ should not be matched by /{foo} when foo has no default value)
2011-05-03 14:48:08 +02:00
Fabien Potencier
d2a9b23c28
[Routing] fixed routing when a pattern has only one segment which is an optional variable
2011-05-03 08:54:33 +02:00
Fabien Potencier
fefee0d5e5
[Routing] fixed URL generation when an optional variable value is 0
2011-04-26 09:50:57 +02:00
Fabien Potencier
035afc1f4e
[Routing] fixed regression in Routing matching algorithm
2011-04-26 09:01:25 +02:00
Fabien Potencier
7c95bda751
[Routing] simplified route compiler
2011-04-25 12:38:20 +02:00
Fabien Potencier
4ed8d4f6b5
[Routing] fixed URL generation when a non-optional variable is empty
2011-04-24 13:06:02 +02:00
Fabien Potencier
7e33159723
[Routing] the global parameters must not be added in the QS when generating URLs
2011-04-21 09:52:35 +02:00
Fabien Potencier
f7d44148df
[Routing] removed unused defaults variable
2011-04-20 22:55:23 +02:00
Fabien Potencier
fd1636b324
[Routing] added RedirectableUrlMatcher
2011-04-20 15:54:48 +02:00
Fabien Potencier
0dbfa18c46
[Routing] made a small optimization to the route dumper
2011-04-20 14:19:33 +02:00
Fabien Potencier
117321d3c6
replaced array for request context in Routing by a RequestContext class
2011-04-20 14:19:32 +02:00
Fabien Potencier
07aae98495
[Routing] added support for _scheme requirement
...
The _scheme requirement can be used to force routes to always match one given scheme
and to always be generated with the given scheme.
So, if _scheme is set to https, URL generation will force an absolute URL if the
current scheme is http. And if you request the URL with http, you will be redirected
to the https URL.
2011-04-20 10:49:32 +02:00
Fabien Potencier
7c54518626
[Routing] refactored some unit tests
2011-04-19 23:21:22 +02:00
Fabien Potencier
2014ff6856
merged lsmith77/url_generator_null_parameter
2011-04-19 14:21:14 +02:00
Lukas Kahwe Smith
1ecaade68d
added support for parameters with default null
2011-04-18 15:35:05 +02:00
Brikou CARRE
e898445b94
removed empty lines/trailing spaces
2011-04-15 21:12:02 +02:00
Fabien Potencier
e3679ef44f
[Routing] decoupled Routing from FrameworkBundle
2011-04-05 15:21:32 +02:00
Fabien Potencier
7c0a39c353
[Routing] optimized the output of the PHP matcher dumper
2011-04-05 11:58:56 +02:00
Fabien Potencier
f232b3cdda
reverted Merge remote branch 'kriswallsmith/kernel/shorter-bundle-names'
2011-04-04 11:10:56 +02:00
Kris Wallsmith
ade83e2e80
updated codebase to use shorter bundle names
...
Controllers:
"BlogBundle:Post:show" is now "Blog:Post:show"
Templates:
"BlogBundle:Post:show.html.twig" is now "Blog:Post:show.html.twig"
Resources:
"@BlogBundle/Resources/config/blog.xml" is now "@Blog/Resources/config/blog.xml"
Doctrine:
"$em->find('BlogBundle:Post', $id)" is now "$em->find('Blog:Post', $id)"
2011-03-27 06:25:43 -07:00
Aurelijus
38318f8f80
removes unwanted characters from goto name
2011-03-24 10:03:59 +02:00
Fabien Potencier
b5857528e0
[Routing] moved protected to private
2011-03-23 19:25:56 +01:00
Fabien Potencier
a95f72fff3
Merge remote branch 'l3l0/routing-tests'
...
* l3l0/routing-tests:
[Routing] added tearDown with cleanup the file system tmp directory
[Routing] moved clean up the directory from tearDown to setUp. Removed setUpBeforeClass method
[Routing] modified place when we store temporary file
[Routing] modified unit test for PhpGeneratorDumper class
[Routing] add unit test for PhpGeneratorDumper class
[Routing] added more tests for UrlGenerator class
2011-03-22 21:44:31 +01:00
Leszek
05a105f641
[Routing] added tearDown with cleanup the file system tmp directory
2011-03-22 21:21:43 +01:00
Leszek
9b80591133
[Routing] moved clean up the directory from tearDown to setUp. Removed setUpBeforeClass method
2011-03-22 21:21:43 +01:00
Leszek
389810e12a
[Routing] modified place when we store temporary file
2011-03-22 21:21:43 +01:00