File tree Expand file tree Collapse file tree 7 files changed +32
-17
lines changed Expand file tree Collapse file tree 7 files changed +32
-17
lines changed Original file line number Diff line number Diff line change 8
8
type : annotation
9
9
10
10
home_redirect :
11
- pattern : /
11
+ path : /
12
12
defaults :
13
13
_controller : lunetics_locale.switcher_controller:switchAction
14
14
route : ' /cms/routes/%locale%'
15
15
statusCode : 301
16
16
useReferrer : false
17
17
18
18
admin_wo_locale :
19
- pattern : /admin
19
+ path : /admin
20
20
defaults :
21
21
_controller : FrameworkBundle:Redirect:redirect
22
22
route : sonata_admin_dashboard
23
23
permanent : true # this for 301
24
24
25
25
admin_dashboard_wo_locale :
26
- pattern : /admin/dashboard
26
+ path : /admin/dashboard
27
27
defaults :
28
28
_controller : FrameworkBundle:Redirect:redirect
29
29
route : sonata_admin_dashboard
30
30
permanent : true # this for 301
31
31
32
32
admin_dashboard :
33
- pattern : /{_locale}/admin/
33
+ path : /{_locale}/admin/
34
34
defaults :
35
35
_controller : FrameworkBundle:Redirect:redirect
36
36
route : sonata_admin_dashboard
Original file line number Diff line number Diff line change @@ -93,12 +93,12 @@ protected function doTestReachableAdminRoutes($admin)
93
93
$ requirements = $ route ->getRequirements ();
94
94
95
95
// fix this one later
96
- if (strpos ($ route ->getPattern (), 'export ' )) {
96
+ if (strpos ($ route ->getPath (), 'export ' )) {
97
97
continue ;
98
98
}
99
99
100
100
// these don't all work atm
101
- if (strpos ($ route ->getPattern (), 'show ' )) {
101
+ if (strpos ($ route ->getPath (), 'show ' )) {
102
102
continue ;
103
103
}
104
104
@@ -132,7 +132,7 @@ protected function doTestReachableAdminRoutes($admin)
132
132
133
133
$ this ->assertResponseSuccess ($ res );
134
134
135
- $ this ->testedPatterns [] = $ route ->getPattern ();
135
+ $ this ->testedPatterns [] = $ route ->getPath ();
136
136
}
137
137
}
138
138
}
Original file line number Diff line number Diff line change 16
16
use Doctrine \Common \DataFixtures \OrderedFixtureInterface ;
17
17
use Doctrine \Common \Persistence \ObjectManager ;
18
18
use PHPCR \Util \NodeHelper ;
19
- use Symfony \Component \DependencyInjection \ContainerAware ;
19
+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
20
+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
20
21
use Symfony \Cmf \Bundle \MenuBundle \Doctrine \Phpcr \MenuNode ;
21
22
use Symfony \Cmf \Bundle \MenuBundle \Doctrine \Phpcr \Menu ;
22
23
23
- class LoadMenuData extends ContainerAware implements FixtureInterface, OrderedFixtureInterface
24
+ class LoadMenuData implements ContainerAwareInterface, FixtureInterface, OrderedFixtureInterface
24
25
{
26
+ use ContainerAwareTrait;
27
+
25
28
public function getOrder ()
26
29
{
27
30
return 60 ;
Original file line number Diff line number Diff line change 15
15
use Doctrine \Common \DataFixtures \OrderedFixtureInterface ;
16
16
use Doctrine \Common \Persistence \ObjectManager ;
17
17
use Doctrine \ODM \PHPCR \DocumentManager ;
18
- use Symfony \Component \DependencyInjection \ContainerAware ;
18
+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
19
+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
19
20
use PHPCR \Util \NodeHelper ;
20
21
use AppBundle \Document \DemoNewsContent ;
21
22
22
- class LoadNewsData extends ContainerAware implements FixtureInterface, OrderedFixtureInterface
23
+ class LoadNewsData implements ContainerAwareInterface, FixtureInterface, OrderedFixtureInterface
23
24
{
25
+ use ContainerAwareTrait;
26
+
24
27
public function getOrder ()
25
28
{
26
29
return 50 ;
Original file line number Diff line number Diff line change 18
18
use PHPCR \Util \NodeHelper ;
19
19
use Symfony \Cmf \Bundle \RoutingBundle \Doctrine \Phpcr \RedirectRoute ;
20
20
use Symfony \Cmf \Bundle \RoutingBundle \Doctrine \Phpcr \Route ;
21
- use Symfony \Component \DependencyInjection \ContainerAware ;
21
+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
22
+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
22
23
use Symfony \Cmf \Component \Routing \RouteObjectInterface ;
23
24
24
- class LoadRoutingData extends ContainerAware implements FixtureInterface, OrderedFixtureInterface
25
+ class LoadRoutingData implements ContainerAwareInterface, FixtureInterface, OrderedFixtureInterface
25
26
{
27
+ use ContainerAwareTrait;
28
+
26
29
public function getOrder ()
27
30
{
28
31
return 21 ;
Original file line number Diff line number Diff line change 18
18
use PHPCR \Util \NodeHelper ;
19
19
use AppBundle \Document \DemoSeoContent ;
20
20
use Symfony \Cmf \Bundle \SeoBundle \Doctrine \Phpcr \SeoMetadata ;
21
- use Symfony \Component \DependencyInjection \ContainerAware ;
21
+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
22
+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
22
23
use Symfony \Component \Yaml \Parser ;
23
24
24
- class LoadStaticPageData extends ContainerAware implements FixtureInterface, OrderedFixtureInterface
25
+ class LoadStaticPageData implements ContainerAwareInterface, FixtureInterface, OrderedFixtureInterface
25
26
{
27
+ use ContainerAwareTrait;
28
+
26
29
public function getOrder ()
27
30
{
28
31
return 5 ;
Original file line number Diff line number Diff line change 12
12
namespace AppBundle \EventListener ;
13
13
14
14
use PHPCR \RepositoryException ;
15
- use Symfony \Component \DependencyInjection \ContainerAware ;
15
+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
16
+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
16
17
use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
17
18
use Symfony \Component \HttpFoundation \Response ;
18
19
use Symfony \Component \HttpKernel \KernelEvents ;
23
24
* Exception listener that will handle not found exceptions and try to give the
24
25
* first time installer some clues what is wrong.
25
26
*/
26
- class SandboxExceptionListener extends ContainerAware implements EventSubscriberInterface
27
+ class SandboxExceptionListener implements EventSubscriberInterface, ContainerAwareInterface
27
28
{
29
+ use ContainerAwareTrait;
30
+
28
31
public function onKernelException (GetResponseForExceptionEvent $ event )
29
32
{
30
33
if (!$ event ->getException () instanceof NotFoundHttpException) {
You can’t perform that action at this time.
0 commit comments