Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoload files #29

Closed
tobyzerner opened this issue Aug 26, 2015 · 1 comment
Closed

Autoload files #29

tobyzerner opened this issue Aug 26, 2015 · 1 comment
Labels

Comments

@tobyzerner
Copy link

Studio currently doesn't autoload files from the packages that it manages. See https://github.com/franzliedke/studio/blob/master/src/Composer/StudioPlugin.php#L55

In Flarum we have some temporary code (in bootstrap.php) to work around this by loading the files we need manually.

Just creating an issue so this doesn't get forgotten :)

franzliedke added a commit that referenced this issue Dec 12, 2015
When running "composer install" or "composer update", Studio will now
register its managed packages as "path repositories". This way, Composer
will not search for these packages on Packagist, but instead symlink them
into the vendor dir of the main project.

See https://getcomposer.org/doc/05-repositories.md#path.

Closes #14, #29.
@franzliedke
Copy link
Owner

I just pushed a commit that should fix this issue.

Managed packages will not be hacked into the autoloader files anymore, but instead they will be symlinked into the vendor dir. Composer already provides this for free using path repositories. :)

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

No branches or pull requests

2 participants