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

autoloder is no more necessary if you use composer #6

Closed
giorrrgio opened this issue Jun 12, 2012 · 3 comments
Closed

autoloder is no more necessary if you use composer #6

giorrrgio opened this issue Jun 12, 2012 · 3 comments

Comments

@giorrrgio
Copy link

I'm using PredisServiceProvider with latest version of Silex and Composer.
I got an error while trying to register the service, because in the register method there is a reference to the old Silex autoloader:

        if (isset($app["$prefix.class_path"])) {
            $app['autoloader']->registerNamespace('Predis', $app["$prefix.class_path"]);
        }

I think all the references to the old silex autoloader have to be removed, even in the README in favour of composer instructions.

@igorw
Copy link
Contributor

igorw commented Jun 12, 2012

It's ok to keep the option around for BC, but in general I agree that composer should be the suggested way.

@nrk
Copy link
Owner

nrk commented Jul 8, 2012

Sorry for the uber-late response, I've been hell busy and that's also the reason why I didn't notice this change in Silex so thanks for reporting the issue. I'll fix the documentation after fixing another glaring issue in the configuration of the provider that emerged after the addition of the boot() method in Silex.

@igorw I'm going to remove the class_path option since I have to break compatibility anyway. Some things must be moved inside boot(), the approach after its addition broke the configuration of this provider.

@nrk
Copy link
Owner

nrk commented Jul 8, 2012

Fixed with commit a8090eb, thanks.

@nrk nrk closed this as completed Jul 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants