Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Usage in different bundles cause reflection error #16

Open
darles opened this issue Apr 27, 2015 · 1 comment · May be fixed by #26
Open

Usage in different bundles cause reflection error #16

darles opened this issue Apr 27, 2015 · 1 comment · May be fixed by #26

Comments

@darles
Copy link

darles commented Apr 27, 2015

If I add CompilerPass to two bundles, ReflectionFactory searches for same classes in both bundles directories causing reflection exception eg:

ReflectionException in ReflectionFactory.php line 18:
Class Acme\SecondBundle\Entity\Client does not exist

Am I doing something wrong or there should be an class_exists check in ReflectionFactory?

@pedropapa
Copy link

Seems like you are using symfony2.8 or higher in your project.

PR #26 fix ur issue.

While KnpLabs don't accept my PR, you can use my fork to keep working on your project, just replace

"repositories": [
        {
            "type": "git",
            "url": "https://github.com/KnpLabs/KnpJsonSchemaBundle.git"
        }
    ],

to

"repositories": [
       {
            "type": "git",
            "url": "https://github.com/pedropapa/KnpJsonSchemaBundle.git"
        }
    ],

on your composer.json, and run an composer update knplabs/json-schema-bundle

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 a pull request may close this issue.

2 participants