nazar-pc /
CleverStyle-Framework
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * @package Composer |
||
| 4 | * @category modules |
||
| 5 | * @author Nazar Mokrynskyi <[email protected]> |
||
| 6 | * @license 0BSD |
||
| 7 | */ |
||
| 8 | namespace cs\modules\Composer; |
||
| 9 | use |
||
| 10 | Composer\Console\Application as Composer_application; |
||
| 11 | |||
| 12 | class Application extends Composer_application { |
||
| 13 | /** |
||
| 14 | * @var callable |
||
| 15 | */ |
||
| 16 | private $composer_callback; |
||
| 17 | /** |
||
| 18 | * @param callable $composer_callback |
||
| 19 | */ |
||
| 20 | public function __construct ($composer_callback) { |
||
| 21 | $this->composer_callback = $composer_callback; |
||
| 22 | parent::__construct(); |
||
| 23 | } |
||
| 24 | /** |
||
| 25 | * @param bool|true $required |
||
| 26 | * @param bool|false $disablePlugins |
||
| 27 | * |
||
| 28 | * @return \Composer\Composer |
||
|
0 ignored issues
–
show
|
|||
| 29 | * |
||
| 30 | * @throws \Composer\Json\JsonValidationException |
||
| 31 | */ |
||
| 32 | public function getComposer ($required = true, $disablePlugins = false) { |
||
| 33 | $Composer = parent::getComposer($required, $disablePlugins); |
||
| 34 | if ($callback = $this->composer_callback) { |
||
| 35 | $callback($Composer); |
||
| 36 | } |
||
| 37 | return $Composer; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths