Skip to content

Commit

Permalink
Remove unused controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Aug 10, 2022
1 parent 6e3edcf commit 42d93bc
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 108 deletions.
63 changes: 0 additions & 63 deletions src/Controller/AjaxController.php

This file was deleted.

27 changes: 0 additions & 27 deletions src/Controller/BlockController.php

This file was deleted.

8 changes: 0 additions & 8 deletions src/Resources/config/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Sonata\PageBundle\Block\ContainerBlockService;
use Sonata\PageBundle\Block\PageListBlockService;
use Sonata\PageBundle\Block\SharedBlockBlockService;
use Sonata\PageBundle\Controller\AjaxController;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator;

Expand All @@ -40,13 +39,6 @@
new ReferenceConfigurator('sonata.page.admin.page'),
])

->set('sonata.page.block.ajax', AjaxController::class)
->args([
new ReferenceConfigurator('sonata.page.cms_manager_selector'),
new ReferenceConfigurator('sonata.block.renderer'),
new ReferenceConfigurator('sonata.block.context_manager'),
])

->set('sonata.page.block.breadcrumb', BreadcrumbBlockService::class)
->tag('sonata.block')
->tag('sonata.breadcrumb')
Expand Down
4 changes: 0 additions & 4 deletions src/Resources/config/controllers.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

use Psr\Container\ContainerInterface;
use Sonata\PageBundle\Controller\BlockAdminController;
use Sonata\PageBundle\Controller\BlockController;
use Sonata\PageBundle\Controller\PageAdminController;
use Sonata\PageBundle\Controller\PageController;
use Sonata\PageBundle\Controller\SiteAdminController;
Expand All @@ -25,9 +24,6 @@
// Use "service" function for creating references to services when dropping support for Symfony 4.4
$containerConfigurator->services()

->set('sonata.page.controller.block', BlockController::class)
->public()

->set('sonata.page.controller.page', PageController::class)
->public()
->tag('container.service_subscriber')
Expand Down
6 changes: 0 additions & 6 deletions src/Resources/config/routing/page.xml

This file was deleted.

0 comments on commit 42d93bc

Please sign in to comment.