Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

PHP Fatal error: Class 'GOC\PaginationBundle\GOCPaginationBundle' not found #4

Open
jayesbe opened this issue Dec 23, 2012 · 2 comments

Comments

@jayesbe
Copy link

jayesbe commented Dec 23, 2012

Just added this in but was not expecting this.

after adding

new GOC\PaginationBundle\GOCPaginationBundle(),

to the AppKernel

and then php app/console cache:clear --env=prod

I get

PHP Fatal error: Class 'GOC\PaginationBundle\GOCPaginationBundle' not found in /media/raidone/workspace/PlayoffPool/app/AppKernel.php on line 38

Interestingly enough.. composer.phar update results in a clean install of

Updating dependencies

  • Installing goc/pagination-bundle (dev-master 090aa46)
    Cloning 090aa46
@jayesbe
Copy link
Author

jayesbe commented Dec 23, 2012

ok I just confirmed that the issue is this line missing from autoload_namespaces.php in vendor/composer/

'GOC\\PaginationBundle' => $vendorDir . '/goc/pagination-bundle/',

after I added this line manually everything worked. Why is this line not being added automatically ?

@jayesbe
Copy link
Author

jayesbe commented Dec 23, 2012

missing

"autoload": {
    "psr-0": { "GOC\\PaginationBundle": "" }
},

in the composer.json

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

No branches or pull requests

1 participant