Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
/.travis.yml export-ignore
/.editorconfig export-ignore
/codecov.yml export-ignore
/.remarkrc export-ignore
/.remarkignore export-ignore
/behat.yml export-ignore
/phpunit.xml.dist export-ignore
/phpcs.xml.dist export-ignore
Expand Down
1 change: 1 addition & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ build:
COMPOSER_OPTIONS: '--optimize-autoloader'
COVERAGE_OUTPUT_STYLE: 'clover'
COVERAGE_CLOVER_FILE_PATH: 'build/coverage/clover.xml'
PHPCS_DISABLE_WARNING: 'true'
php:
version: "8.2"
ini:
Expand Down
8 changes: 6 additions & 2 deletions features/demo_app/src/AbstractKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public function getProjectDir(): string
return realpath(__DIR__.'/../');
}

public function getConfigDir(): string
{
return $this->getProjectDir().'/'.$this->getConfigDirectoryName();
}

/**
* @param RouteCollectionBuilder|RoutingConfigurator $routes
*/
Expand All @@ -69,7 +74,7 @@ protected function configureRoutes($routes)
$routes->import($confDir . '/routes' . self::CONFIG_EXTS, '/', 'glob');
}
}

/**
* {@inheritdoc}
*/
Expand All @@ -93,5 +98,4 @@ protected function getContainerClass(): string
}

abstract public function getConfigDirectoryName() : string;
abstract public function getConfigDir(): string;
}
5 changes: 0 additions & 5 deletions features/demo_app/src/DefaultKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,4 @@ public function getConfigDirectoryName() : string
{
return 'default_config';
}

public function getConfigDir(): string
{
return $this->getProjectDir().'/'.$this->getConfigDirectoryName();
}
}