$definition->addMethodCall(...) on L111 results in Fatal error: Call to undefined method Symfony\Component\DependencyInjection\Reference::addMethodCall(). This is because $definition is Reference type, though it should be Definition type which has the addMethodCall method
$definition->addMethodCall(...)
on L111 results inFatal error: Call to undefined method Symfony\Component\DependencyInjection\Reference::addMethodCall()
. This is because$definition
isReference
type, though it should beDefinition
type which has theaddMethodCall
methodsee https://github.com/stephpy/timeline-bundle/commit/ff9c3e740887e39d21b7e7521b589728d590a98c#commitcomment-21808406 for more details