Skip to content

Commit

Permalink
Add public true to alias
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Aug 8, 2024
1 parent 64ef401 commit dcc2c1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@
namespace Sulu\Bundle\ContentBundle\Content\UserInterface\Controller\Website;

use Sulu\Bundle\WebsiteBundle\Controller\DefaultController;
use Sulu\Component\Content\Compat\StructureInterface;

/**
* TODO this controller will later replace the DefaultController of the WebsiteBundle
* and should be base for all content controllers.
*/
class ContentController extends DefaultController
{
public function indexAction(StructureInterface $structure, $preview = false, $partial = false)
{
return parent::indexAction($structure, $preview, $partial);
}
}
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>

0 comments on commit dcc2c1f

Please sign in to comment.