diff --git a/.gitignore b/.gitignore index 9c1f7c5..67883ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,12 @@ # hidev internals -.hidev/composer.json -.hidev/composer.lock -.hidev/config-local.yml -.hidev/vendor +/.hidev/composer.json +/.hidev/composer.lock +/.hidev/runtime +/.hidev/vendor + +# local config +/.env +/hidev-local.yml # IDE & OS files .*.swp @@ -14,11 +18,9 @@ Thumbs.db nbproject -# vendor dirs -vendor - -# composer lock files -composer.lock +# composer internals +/composer.lock +/vendor # php-cs-fixer cache .php_cs.cache @@ -26,9 +28,10 @@ composer.lock # phpunit generated files coverage.clover -# PHARs +# Binaries chkipper.phar composer.phar +ocular.phar php-cs-fixer.phar phpunit-skelgen.phar phpunit.phar diff --git a/.php_cs b/.php_cs index 6610c13..d324bd3 100644 --- a/.php_cs +++ b/.php_cs @@ -26,6 +26,7 @@ return PhpCsFixer\Config::create() ], 'concat_space' => ['spacing' => 'one'], 'array_syntax' => ['syntax' => 'short'], + 'phpdoc_no_alias_tag' => ['replacements' => ['type' => 'var']], 'blank_line_before_return' => false, 'phpdoc_align' => false, 'phpdoc_scalar' => false, diff --git a/.travis.yml b/.travis.yml index dbe10d1..b899257 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ php: - 7 - 7.1 - hhvm -sudo: false dist: trusty matrix: allow_failures: @@ -18,10 +17,11 @@ before_install: - 'composer --version' - 'wget http://hiqdev.com/hidev/hidev.phar -O hidev.phar && chmod a+x hidev.phar' - './hidev.phar --version' - - './hidev.phar travis/before_install' + - './hidev.phar travis/before-install' +sudo: false install: - './hidev.phar travis/install' script: - './hidev.phar travis/script' after_script: - - './hidev.phar travis/after_script' + - './hidev.phar travis/after-script' diff --git a/README.md b/README.md index ce0a6d3..c26c5c4 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/hiqdev/composer-config-plugin.svg)](https://scrutinizer-ci.com/g/hiqdev/composer-config-plugin/) [![Dependency Status](https://www.versioneye.com/php/hiqdev:composer-config-plugin/dev-master/badge.svg)](https://www.versioneye.com/php/hiqdev:composer-config-plugin/dev-master) -This [Composer](https://getcomposer.org/) plugin provides assembling +This [Composer] plugin provides assembling of configurations distributed with composer packages. This allows to put configuration needed to use package right inside of the package thus implementing plugin system: package becomes a plugin @@ -34,9 +34,11 @@ How it works? directory together with information needed to rebuild configs on demand - then assembled configs can be loaded into application with `require` +[composer]: https://getcomposer.org/ + ## Installation -Add to required section of your `composer.json`: +Add to require section of your `composer.json`: ```json "hiqdev/composer-config-plugin": "*" diff --git a/src/Builder.php b/src/Builder.php index ae1bad1..14526d2 100644 --- a/src/Builder.php +++ b/src/Builder.php @@ -1,6 +1,6 @@ files) as $name) { $this->followDeps($name); } - } public function get() @@ -96,5 +95,4 @@ protected function isDep($path) { return strncmp($path, '$', 1) === 0 ? substr($path, 1) : false; } - } diff --git a/src/exceptions/CircularDependencyException.php b/src/exceptions/CircularDependencyException.php index 259c2f5..b7ec8c2 100644 --- a/src/exceptions/CircularDependencyException.php +++ b/src/exceptions/CircularDependencyException.php @@ -1,6 +1,6 @@