files = $definition['files']; } /** * {@inheritdoc} */ protected static function processDefinition(array &$definition) { parent::processDefinition($definition); $definition += [ 'files' => [], ]; } /** * {@inheritdoc} */ public function getPhpFiles() { if (!$this->isInstalled()) { throw new LibraryNotInstalledException($this); } $processed_files = []; foreach ($this->files as $file) { $processed_files[] = $this->getLocalPath() . '/' . $file; } return $processed_files; } /** * {@inheritdoc} */ public function getLocator(FactoryInterface $locator_factory) { // @todo Consider refining the stream wrapper used here. return $locator_factory->createInstance('uri', ['uri' => 'php-file://']); } }