diff --git a/composer.json b/composer.json index 0256053..891f19d 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,7 @@ "phpstan/phpstan-nette": "^1.2.9" }, "autoload": { - "psr-4": { - "Drago\\Bootstrap\\": "src/" - } + "classmap": ["src/"] }, "scripts": { "phpstan": "phpstan analyse --level 5 --configuration tests/phpstan.neon src", diff --git a/readme.md b/readme.md index 214b731..74dde3e 100644 --- a/readme.md +++ b/readme.md @@ -23,8 +23,9 @@ composer require nette/bootstrap nette/caching tracy/tracy ## Basic Usage ### Adding Configuration Files To load configuration files from a specified directory: + ```php -use Drago\Bootstrap\ExtraConfigurator; +use Drago\Bootstrap\Drago\Bootstrap\ExtraConfigurator; $configurator = new ExtraConfigurator(); diff --git a/src/Drago/Bootstrap/ExtraConfigurator.php b/src/Drago/Bootstrap/ExtraConfigurator.php index 9b90088..242396f 100644 --- a/src/Drago/Bootstrap/ExtraConfigurator.php +++ b/src/Drago/Bootstrap/ExtraConfigurator.php @@ -22,6 +22,7 @@ class ExtraConfigurator extends Configurator { public const Caching = 'drago.cacheConf'; + /** * Searches for configuration files (.neon) in the given directories and stores them in cache. * If the cache is already available, the cached configuration files are loaded.