Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

custom composer vendor dir #147

@devthejo

Description

@devthejo

Hello,
first thank you for this great tool !

when I use a custom vendor dir for composer packages (see https://getcomposer.org/doc/06-config.md#vendor-dir)

I get:

PHP Fatal error: Uncaught Exception: You must set up the project dependencies, run the following commands:
curl -sS https://getcomposer.org/installer | php
php composer.phar install
in /var/www/myproject/packages/beelab/bowerphp/src/bootstrap.php:20
Stack trace:
#0 /var/www/myproject/packages/beelab/bowerphp/bin/bowerphp(8): require()
#1 {main}

thrown in /var/www/myproject/packages/beelab/bowerphp/src/bootstrap.php on line 20

and the relative path doesn't match either when bowerphp is used as a package by composer

I suggest you to change

if (!$loader = $includeIfExists(__DIR__ . '/../vendor/autoload.php')) {

by

if (!$loader = $includeIfExists(__DIR__ . '/../../../autoload.php')) {

or

if ( (!$loader = $includeIfExists(__DIR__ . '/../vendor/autoload.php')) && (!$loader = $includeIfExists(__DIR__ . '/../../../autoload.php')) ) {

;)

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions