Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. use AppBaseServiceAccountService;
  2. use AppBaseServiceBaseService;
  3.  
  4.  
  5. class MainService extends BaseService
  6. {
  7. /**
  8. * @param AccountService $accountService
  9. */
  10. public function __construct(AccountService $accountService)
  11. {
  12. parent::__construct();
  13. $this->accountService = $accountService;
  14. }
  15.  
  16. this->accountService->getMyFunction();
  17.  
  18. class BaseService
  19. {
  20. /** @var ContainerInterface */
  21. var $container;
  22. var $em;
  23.  
  24. public function __construct(ContainerInterface $container, EntityManagerInterface $em)
  25. {
  26. $this->container = $container;
  27. $this->em = $em;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement