You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a fresh installation of Symfony 7.1, once AutoMapperBundle (version 9.0.1) is enabled in config/bundles.php, I get this error:
The service automapper.mapping.class_discriminator_from_class_metadata has a dependency on a non-existent service serializer.mapping.class_metadata_factory.
After installing the symfony/serializer package so that the service is registered by the FrameworkBundle, I get a new error:
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException] You have requested a non-existent service serializer.normalizer.object.
This is solved by installing symfony/property-access. But then:
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException] The service automapper.property_info.cache.inner has a dependency on a non-existent service property_info.phpstan_extractor.
This is solved by installing both phpstan/phpdoc-parser and phpdocumentor/type-resolver.
So I need to install this packages to work with the bundle:
`symfony/serializer` should not be required when installing AutoMapper,
so with this PR I make the `ClassDiscriminatorResolver` optional within
the bundle so we can install it without the Serializer installed.
Will fix a part of #127, but not everything.
On a fresh installation of Symfony 7.1, once
AutoMapperBundle
(version 9.0.1) is enabled inconfig/bundles.php
, I get this error:After installing the
symfony/serializer
package so that the service is registered by theFrameworkBundle
, I get a new error:This is solved by installing
symfony/property-access
. But then:This is solved by installing both
phpstan/phpdoc-parser
andphpdocumentor/type-resolver
.So I need to install this packages to work with the bundle:
This is the first time I install the package, so I'm not sure this is correct.
I think the installation of these dependencies could be better guided in the docs.
The text was updated successfully, but these errors were encountered: