Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

autoload.php.dist - fix ClassLoader #12

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

curtisgibby
Copy link

The Symfony project has removed the UniversalClassLoader component. The current autoload.php.dist is broken because of this. I had to make the attached edits to get this to work. (I'm generally unfamiliar with autoloading and namespaces, but there doesn't appear to be an equivalent functionality in the ClassLoader class to the following chunk of code, so I just took it out.)

$loader->registerNamespaces(array(
    'Console' => BASE_PATH . '/bin',
    'Symfony' => BASE_PATH . '/vendor/symfony/src',
));

lrobert and others added 13 commits January 14, 2014 11:08
Updated composer.json to have a correct minimum-stability
Removing Symfony, as it's not required to run the API client.
The Symfony project has [removed the `UniversalClassLoader` component](symfony/class-loader@2ae376a). The current autoload.php.dist is broken because of this. I had to make the attached edits to get this to work.  (I'm generally unfamiliar with autoloading and namespaces, but there doesn't appear to be an equivalent functionality in the `ClassLoader` class to the following chunk of code, so I just took it out.

```php
$loader->registerNamespaces(array(
    'Console' => BASE_PATH . '/bin',
    'Symfony' => BASE_PATH . '/vendor/symfony/src',
));
```
@philcali philcali force-pushed the master branch 2 times, most recently from 2c66f44 to dd7b765 Compare March 18, 2015 15:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants