Skip to content

Commit

Permalink
merged branch fabpot/pattern-fix (PR #6998)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.2 branch.

Commits
-------

73aa7d1 replaced usage of the deprecated pattern routing key (replaced with path)

Discussion
----------

replaced usage of the deprecated pattern routing key (replaced with path)

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

---------------------------------------------------------------------------

by lsmith77 at 2013-02-07T13:35:54Z

do we have tests to cover the BC behavior?

---------------------------------------------------------------------------

by fabpot at 2013-02-07T16:30:31Z

I've just added some tests for the legacy way.
  • Loading branch information
fabpot committed Feb 11, 2013
2 parents bb265c3 + aca74e3 commit 800a368
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Tests/Functional/Bundle/TestBundle/Resources/config/routing.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
session_welcome:
pattern: /session
path: /session
defaults: { _controller: TestBundle:Session:welcome }

session_welcome_name:
pattern: /session/{name}
path: /session/{name}
defaults: { _controller: TestBundle:Session:welcome }

session_logout:
pattern: /session_logout
path: /session_logout
defaults: { _controller: TestBundle:Session:logout}

session_setflash:
pattern: /session_setflash/{message}
path: /session_setflash/{message}
defaults: { _controller: TestBundle:Session:setFlash}

session_showflash:
pattern: /session_showflash
path: /session_showflash
defaults: { _controller: TestBundle:Session:showFlash}

profiler:
pattern: /profiler
path: /profiler
defaults: { _controller: TestBundle:Profiler:index }

0 comments on commit 800a368

Please sign in to comment.