private function loadPlugins() { /** @var Plugin\Manager $pluginManager */ $pluginManager = $this->dependencyContainer->get('plugins'); $plugins = $this->config('plugin_instances', []); foreach ($plugins as $plugin) { if (!$plugin instanceof \Slim\Mvc\Plugin\AbstractPlugin) { throw new InvalidPluginException(); } $pluginManager->initialize($plugin); } }
public function __call($name, $arguments) { return $this->container->get($name, $arguments); }