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

try to parse csv #5

Open
fmronan opened this issue Jun 22, 2015 · 2 comments
Open

try to parse csv #5

fmronan opened this issue Jun 22, 2015 · 2 comments

Comments

@fmronan
Copy link

fmronan commented Jun 22, 2015

I' try to use your bundle but I have this error

[Symfony\Component\Debug\Exception\ContextErrorException]
Catchable Fatal Error: Argument 3 passed to Lexik\Bundle\FixturesMapperBund
le\Loader\AbstractLoader::__construct() must be an instance of Symfony\Comp
onent\Validator\Validator, instance of Symfony\Component\Validator\Validato
r\LegacyValidator given, called in C:\wamp\www\genus\app\cache\dev\appDevDe
bugProjectContainer.php on line 2124 and defined

@cedric-g
Copy link
Contributor

Maybe because the bundle is not up to date according to the latest symfony version. But we don't maintain anymore this bundle.

@quot17
Copy link

quot17 commented Aug 18, 2015

In Lexik/Bundle/FixturesMapperBundle/Loader/AbstractLoader.php and Lexik/Bundle/FixturesMapperBundle/Mapper/Mapper.php, just find and replace :

  • use Symfony\Component\Validator\Validator; by use Symfony\Component\Validator\Validator\LegacyValidator; (after namespace)
  • Validator by LegacyValidator (as argument of constructor)

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