Closed BugBuster1701 closed 1 year ago
Beispiel: $this->get('database_connection') $this->get('security.helper')->getUser(); $this->get('contao.framework')->initialize();
$this->get('database_connection')
$this->get('security.helper')->getUser();
$this->get('contao.framework')->initialize();
Alternative: $this->container->get(...);
$this->container->get(...);
https://github.com/BugBuster1701/contao-visitors-bundle/commit/f7aa69446b7ddf1cc4e8810befd6bfcbda955aec
Beispiel:
$this->get('database_connection')
$this->get('security.helper')->getUser();
$this->get('contao.framework')->initialize();
Alternative:
$this->container->get(...);