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

Latest composer causes an issue with JsonValidator loading due to PSR-4 change #15

Open
gmoreira opened this issue Sep 14, 2015 · 0 comments

Comments

@gmoreira
Copy link

@phiamo today this issue has come up. This is how it appears:

$ php app/console mopa:bootstrap:symlink:less --force
Initializing composer ...
PHP Fatal error:  Class 'JsonSchema\Validator' not found in phar:///..blah../composer.phar/src/Composer/Json/JsonFile.php on line 160
[Symfony\Component\Debug\Exception\ClassNotFoundException]
Attempted to load class "Validator" from namespace "JsonSchema".
Did you forget a "use" statement for e.g. "Symfony\Component\Validator\Validator", "JMS\DiExtraBundle\Annotation\Validator", "JMS\DiExtraBundle\Tests\Fixture\Validator\Validator", "Gedmo\ReferenceIntegrity\Mapping\Validator", "Gedmo\SoftDeleteable\Mapping\Validator", "Gedmo\Tree\Mapping\Validator" or "Gedmo\Uploadable\Mapping\Validator"?
mopa:bootstrap:symlink:less [-f|--force] [-m|--manual] [--no-symlink] [pathToTwitterBootstrap] [pathToMopaBootstrapBundle]

In my initial look at this, It would seem that the composer bridge needs to also load the PSR-4 autoloader?

In composer this is the change that has caused this:
composer/composer@1215e19
Which was a fall on effect of this change in one of it's dependencies:
jsonrainbow/json-schema@344315f

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

1 participant