* [MOD] Improved IoC handling. Work in progress

This commit is contained in:
nuxsmin
2018-02-14 00:24:35 +01:00
parent f25b860a8e
commit 674c9154b7
58 changed files with 781 additions and 881 deletions

View File

@@ -50,8 +50,9 @@ class ConfigManagerController extends ControllerBase
protected $tabsHelper;
/**
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
* @throws \SP\Core\Exceptions\InvalidArgumentException
* @throws \SP\Core\Dic\ContainerException
*/
public function indexAction()
{
@@ -61,12 +62,13 @@ class ConfigManagerController extends ControllerBase
/**
* Returns a tabbed grid with items
*
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
* @throws \SP\Core\Exceptions\InvalidArgumentException
* @throws \SP\Core\Dic\ContainerException
*/
protected function getTabs()
{
$this->tabsHelper = new TabsHelper($this->view, $this->config, $this->session, $this->eventDispatcher);
$this->tabsHelper = $this->dic->get(TabsHelper::class);
if ($this->checkAccess(ActionsInterface::CONFIG_GENERAL)) {
$this->tabsHelper->addTab($this->getConfigGeneral());
@@ -110,6 +112,8 @@ class ConfigManagerController extends ControllerBase
/**
* @return DataTab
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
protected function getConfigGeneral()
{
@@ -170,6 +174,8 @@ class ConfigManagerController extends ControllerBase
/**
* @return DataTab
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
protected function getLdapConfig()
{
@@ -187,6 +193,8 @@ class ConfigManagerController extends ControllerBase
/**
* @return DataTab
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
protected function getMailConfig()
{
@@ -204,6 +212,8 @@ class ConfigManagerController extends ControllerBase
/**
* @return DataTab
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
protected function getEncryptionConfig()
{