I have S2 application with 2 bundles (frontend, backend). Now, I want to create my own component, which I`ll can use in another application (sometimes). Somewhere I read, that in Symfony are components called services.
So I have to create new bundle for my new component/service, right?
And my question is, What i have to do, for use my new component/service, in another bundle(frontend or bakcend)?
Are somewhere any instructions for do this?
I have S2 application with 2 bundles (frontend, backend). Now, I want to create
Share
There are no components in symfony , you only have bundles. You can use different bundles in different application.
Suppose you have the
UserBundleyou can use that in any other symfony application as wellYou can make the
UserServiceinside that Bundle and then can useUserServicefor stuff likemyservice.updatePassword($password)