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

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -