WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit f36e36d

Browse files
Upgrade example controller to use new controller (#263)
1 parent 8ab47bd commit f36e36d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
'get_class_to_class_keyword' => false, // should be enabled as soon as support for php < 8 is dropped
3535
'nullable_type_declaration_for_default_null_value' => true,
3636
'no_null_property_initialization' => false,
37+
'new_with_parentheses' => true,
3738
])
3839
->setFinder(
3940
PhpCsFixer\Finder::create()

Resources/config/controller.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
public="true">
99
<tag name="container.service_subscriber" />
1010
<tag name="controller.service_arguments" />
11-
<tag name="sulu.context" context="website" />
1211
<call method="setContainer">
1312
<argument type="service" id="Psr\Container\ContainerInterface" />
1413
</call>
1514
</service>
1615

17-
<service id="Sulu\Bundle\ContentBundle\Content\UserInterface\Controller\Website\ContentController" alias="sulu_content.content_controller" />
16+
<service id="Sulu\Bundle\ContentBundle\Content\UserInterface\Controller\Website\ContentController" alias="sulu_content.content_controller" public="true" />
1817
</services>
1918
</container>

Tests/Application/config/templates/examples/default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<key>default</key>
77

88
<view>@ExampleTest/examples/default</view>
9-
<controller>Sulu\Bundle\WebsiteBundle\Controller\DefaultController::indexAction</controller>
9+
<controller>Sulu\Bundle\ContentBundle\Content\UserInterface\Controller\Website\ContentController::indexAction</controller>
1010
<cacheLifetime>604800</cacheLifetime>
1111

1212
<meta>

Tests/Application/config/templates/examples/example-2.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<key>example-2</key>
77

88
<view>@ExampleTest/examples/example-2</view>
9-
<controller>Sulu\Bundle\WebsiteBundle\Controller\DefaultController::indexAction</controller>
9+
<controller>Sulu\Bundle\ContentBundle\Content\UserInterface\Controller\Website\ContentController::indexAction</controller>
1010
<cacheLifetime>604800</cacheLifetime>
1111

1212
<meta>

Tests/Application/config/templates/examples/no-route.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<key>no-route</key>
77

88
<view>@ExampleTest/examples/example-2</view>
9-
<controller>Sulu\Bundle\WebsiteBundle\Controller\DefaultController::indexAction</controller>
9+
<controller>Sulu\Bundle\ContentBundle\Content\UserInterface\Controller\Website\ContentController::indexAction</controller>
1010
<cacheLifetime>604800</cacheLifetime>
1111

1212
<meta>

0 commit comments

Comments
 (0)