Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

composer development-status not able to find /vendor/autoload.php file #36

Open
2 tasks done
adamculp opened this issue Nov 24, 2018 · 1 comment
Open
2 tasks done

Comments

@adamculp
Copy link

adamculp commented Nov 24, 2018

  • I was not able to find an open or closed issue matching what I'm seeing.
  • 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.

__DIR__ . '/../../../autoload.php';
__DIR__ . '/../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.

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-development-mode; a new issue has been opened at laminas/laminas-development-mode#2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants