JMSSerializerBundleを使用しようとしていますが、実行後にサービスが一覧表示されませんapp/console container:debug | grep jms_serializer
$ app/console container:debug | grep jms_serializer
jms_serializer.json_deserialization_visitor container JMS\SerializerBundle\Serializer\JsonDeserializationVisit
jms_serializer.json_serialization_visitor container JMS\SerializerBundle\Serializer\JsonSerializationVisitor
jms_serializer.metadata.lazy_loading_driver container Metadata\Driver\LazyLoadingDriver
jms_serializer.metadata_driver container Metadata\Driver\DriverChain
jms_serializer.naming_strategy container JMS\SerializerBundle\Serializer\Naming\CacheNamingStrate
jms_serializer.xml_deserialization_visitor container JMS\SerializerBundle\Serializer\XmlDeserializationVisito
jms_serializer.xml_serialization_visitor container JMS\SerializerBundle\Serializer\XmlSerializationVisitor
jms_serializer.yaml_serialization_visitor container JMS\SerializerBundle\Serializer\YamlSerializationVisitor
インストール後
composer require jms/serializer-bundle
構成する
// in AppKernel::registerBundles()
$bundles = array(
// ...
new JMS\SerializerBundle\JMSSerializerBundle($this),
// ...
);
あなたがどこかで使うなら
$this->get('jms_serializer')
エラーが発生しますYou have requested a non-existent service "jms_serializer".
どうすれば修正できますか?