public function addDirectory($path) { $this->scanPaths = array_merge($this->scanPaths, (array) $path); return $this; }
/** * Initializes the plugin autoloader. */ public function beforeCompile() { foreach ($this->containerBuilder->parameters['plugins'] as $definition) { $this->loader->addDirectory($definition['location']); } $this->loader->register(); }