Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppService;
- use AppEntityUser;
- use DoctrineORMEntityManagerInterface;
- use SymfonyComponentHttpFoundationSessionSessionInterface;
- class SetupHelper
- {
- private $em;
- private $session;
- public function __construct(EntityManagerInterface $em, SessionInterface $session)
- {
- $this->em = $em;
- $this->session = $session;
- }
- public function getName(){
- return $this->getUser()->getName();
- }
- }
- }
- <title>{% block title %}{{ SetupHelper.getName() }}!{% endblock %}</title><title>{% block title %}{{ SetupHelper.getName() }}!{% endblock %}</title>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement