getControllers example


        $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);

        foreach ($controllers as $eventName => $file) {
            $listener
                ->addTag(
                    'shopware.event_listener',
                    [
Home | Imprint | This part of the site doesn't use cookies.