mirror of
https://github.com/composer/composer
synced 2025-05-08 16:17:37 +00:00
Fallback to include vendor/.composer/autoload.php
for bin/composer
When Composer is a dependency for a project the `vendor/bin/composer` script will not run as it is looking for `__DIR__.'/../vendor'` which likely will not exist. What I believe is intended is for the script to include the packages `vendor/.composer/autoload.php`.
This commit is contained in:
parent
0dc3832225
commit
d7714983c3
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env php
|
#!/usr/bin/env php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (!@include __DIR__.'/../vendor/.composer/autoload.php') {
|
if ((!@include __DIR__.'/../vendor/.composer/autoload.php') and (!@include 'vendor/.composer/autoload.php')) {
|
||||||
die('You must set up the project dependencies, run the following commands:
|
die('You must set up the project dependencies, run the following commands:
|
||||||
wget http://getcomposer.org/composer.phar
|
wget http://getcomposer.org/composer.phar
|
||||||
php composer.phar install
|
php composer.phar install
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue