Skip to content

Commit

Permalink
Upgrade example controller to use new controller (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored Aug 8, 2024
1 parent 8ab47bd commit f36e36d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
'get_class_to_class_keyword' => false, // should be enabled as soon as support for php < 8 is dropped
'nullable_type_declaration_for_default_null_value' => true,
'no_null_property_initialization' => false,
'new_with_parentheses' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
Expand Down
3 changes: 1 addition & 2 deletions Resources/config/controller.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
public="true">
<tag name="container.service_subscriber" />
<tag name="controller.service_arguments" />
<tag name="sulu.context" context="website" />
<call method="setContainer">
<argument type="service" id="Psr\Container\ContainerInterface" />
</call>
</service>

<service id="Sulu\Bundle\ContentBundle\Content\UserInterface\Controller\Website\ContentController" alias="sulu_content.content_controller" />
<service id="Sulu\Bundle\ContentBundle\Content\UserInterface\Controller\Website\ContentController" alias="sulu_content.content_controller" public="true" />
</services>
</container>
2 changes: 1 addition & 1 deletion Tests/Application/config/templates/examples/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<key>default</key>

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

<meta>
Expand Down
2 changes: 1 addition & 1 deletion Tests/Application/config/templates/examples/example-2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<key>example-2</key>

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

<meta>
Expand Down
2 changes: 1 addition & 1 deletion Tests/Application/config/templates/examples/no-route.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<key>no-route</key>

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

<meta>
Expand Down

0 comments on commit f36e36d

Please sign in to comment.