collectControllerPaths example

/** * @param Plugin[] $plugins */
    public function __construct(array $plugins)
    {
        $this->plugins = $plugins;
    }

    public function process(ContainerBuilder $container)
    {
        $paths = $this->collectControllerPaths($this->plugins);
        if (\count($paths) === 0) {
            return;
        }

        $controllers = $this->getControllers($paths);
        if (\count($controllers) === 0) {
            return;
        }

        $listener = new Definition(ControllerPathListener::class);
        $listener->setPublic(true);

        
Home | Imprint | This part of the site doesn't use cookies.