vendor/sonata-project/block-bundle/src/Command/BaseCommand.php line 19

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the Sonata Project package.
  5.  *
  6.  * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  7.  *
  8.  * For the full copyright and license information, please view the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace Sonata\BlockBundle\Command;
  12. use Sonata\BlockBundle\Block\BlockServiceManagerInterface;
  13. use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
  14. abstract class BaseCommand extends ContainerAwareCommand
  15. {
  16.     /**
  17.      * @return BlockServiceManagerInterface
  18.      */
  19.     public function getBlockServiceManager()
  20.     {
  21.         return $this->getContainer()->get('sonata.block.manager');
  22.     }
  23. }