[x] I was not able to find an open or closed issue matching what I'm seeing.
[x] This is not a question. (Questions should be asked on chat (Signup here) or our forums.)
After a fresh install of Zend Expressive using $ composer create-project zendframework/zend-expressive-skeleton expressive from within the root directory of the application, try to execute any of the development-* scripts using Composer.
Command to duplicate issue
$ cd /path/to/expressive/root
$ composer development-status
Expected results
I would expect to receive "Development mode is ENABLED"
Actual results
Instead, the script is not able to find the autoload.php. This is because the script has 2 possible locations to search for /vendor/autoload.php by using __DIR__ + added locations. However, when calling composer from the application root the result of __DIR__ is /vendor/bin. Therefore the following locations will not find /vendor/autoload.php.
After a fresh install of Zend Expressive using
$ composer create-project zendframework/zend-expressive-skeleton expressive
from within the root directory of the application, try to execute any of thedevelopment-*
scripts using Composer.Command to duplicate issue
Expected results
I would expect to receive "Development mode is ENABLED"
Actual results
Instead, the script is not able to find the autoload.php. This is because the script has 2 possible locations to search for
/vendor/autoload.php
by using__DIR__
+ added locations. However, when callingcomposer
from the application root the result of__DIR__
is/vendor/bin
. Therefore the following locations will not find/vendor/autoload.php
.What is needed is
__DIR__ . '/../autoload.php'
.NOTE: My experience was on Ubuntu 18.04 using
/usr/bin/composer
to use php via cli.