diff -up ./bin/apigen.rpm ./bin/apigen --- ./bin/apigen.rpm 2017-05-11 14:38:12.000000000 +0200 +++ ./bin/apigen 2017-05-16 09:15:18.037164467 +0200 @@ -1,7 +1,7 @@ #!/usr/bin/env php setDebugMode( ! Tracy\Debugger::$productionMode); $configurator->setTempDirectory($tempDir); -$configurator->addConfig(__DIR__ . '/../src/DI/config.neon'); -$configurator->addParameters(['rootDir' => __DIR__ . '/..']); +$configurator->addConfig('/usr/share/php/ApiGen/DI/config.neon'); +$configurator->addParameters(['rootDir' => '/usr/share/php/ApiGen']); $container = $configurator->createContainer(); diff -up ./src/autoload.php.rpm ./src/autoload.php --- ./src/autoload.php.rpm 2017-05-16 09:15:18.038164473 +0200 +++ ./src/autoload.php 2017-05-16 09:21:57.811521075 +0200 @@ -0,0 +1,26 @@ +themeConfigPathResolver->resolve('/vendor/apigen/theme-default/src/config.neon'); + return $this->themeConfigPathResolver->resolve('/themes/theme-default/config.neon'); } elseif ($theme === self::TEMPLATE_THEME_BOOTSTRAP) { - return $this->themeConfigPathResolver->resolve('/vendor/apigen/theme-bootstrap/src/config.neon'); + return $this->themeConfigPathResolver->resolve('/themes/theme-bootstrap/config.neon'); } throw new ConfigurationException(CO::TEMPLATE_THEME . ' ' . $theme . ' is not supported.'); diff -up ./src/DI/ApiGenExtension.php.rpm ./src/DI/ApiGenExtension.php --- ./src/DI/ApiGenExtension.php.rpm 2017-05-11 14:38:12.000000000 +0200 +++ ./src/DI/ApiGenExtension.php 2017-05-16 09:15:18.038164473 +0200 @@ -61,10 +61,6 @@ class ApiGenExtension extends CompilerEx $application = $builder->getDefinition($builder->getByType('ApiGen\Console\Application')); foreach (array_keys($builder->findByTag(self::TAG_CONSOLE_COMMAND)) as $serviceName) { - $className = $builder->getDefinition($serviceName)->getClass(); - if ( ! $this->isPhar() && $className === 'ApiGen\Command\SelfUpdateCommand') { - continue; - } $application->addSetup('add', ['@' . $serviceName]); } } diff -up ./src/DI/apigen.services.neon.rpm ./src/DI/apigen.services.neon --- ./src/DI/apigen.services.neon.rpm 2017-05-11 14:38:12.000000000 +0200 +++ ./src/DI/apigen.services.neon 2017-05-16 09:15:18.038164473 +0200 @@ -1,7 +1,6 @@ services: # commands - {class: ApiGen\Command\GenerateCommand, tags: [console.command]} - - {class: ApiGen\Command\SelfUpdateCommand, tags: [console.command]} # configuration - ApiGen\Configuration\Configuration diff -up ./src/Theme/ThemeConfigPathResolver.php.rpm ./src/Theme/ThemeConfigPathResolver.php --- ./src/Theme/ThemeConfigPathResolver.php.rpm 2017-05-11 14:38:12.000000000 +0200 +++ ./src/Theme/ThemeConfigPathResolver.php 2017-05-16 09:15:18.038164473 +0200 @@ -38,7 +38,7 @@ class ThemeConfigPathResolver { $allowedPaths = [ $this->rootDir, - $this->rootDir . '/../../..' + '/usr/share/apigen' ]; foreach ($allowedPaths as $allowedPath) { diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php --- ./tests/bootstrap.php.rpm 2017-05-11 14:38:12.000000000 +0200 +++ ./tests/bootstrap.php 2017-05-16 09:23:26.130041699 +0200 @@ -1,7 +1,9 @@