Skip to content

Commit

Permalink
Add missing service definition
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jul 30, 2024
1 parent 3bc8834 commit f6faa64
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions DependencyInjection/SuluContentExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function load(array $configs, ContainerBuilder $container): void
$loader->load('normalizer.xml');
$loader->load('services.xml');
$loader->load('form-visitor.xml');
$loader->load('controller.xml');

if ($container->hasParameter('kernel.bundles')) {
// TODO FIXME add test here
Expand Down
19 changes: 19 additions & 0 deletions Resources/config/controller.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="sulu_content.content_controller"
class="Sulu\Bundle\ContentBundle\Content\UserInterface\Controller\Website\ContentController"
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" />
</services>
</container>

0 comments on commit f6faa64

Please sign in to comment.