php - Retrieve service from one bundle in another bundle extension -
i have bundle working on. in extension configurations, dependant on service defined in different bundle, messages service not defined. can call services other bundle?
edit: here how trying session service.
this bundle extension (simplified)
class bundleextension { function load() { $this->container->get('bundle.service'); } } and here services.yml using (again, simplified)
services: bundle.service: class: serviceclass arguments: [ @session ] the error getting is:
invalidargumentexception: service definition "session" not exist.
Comments
Post a Comment