1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-31 03:10:19 +02:00

Version 1.2.9: Some preparations

This commit is contained in:
Sebastian
2018-12-06 18:07:50 +01:00
parent 39d59df52a
commit 423e52271f
20 changed files with 338 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ use \Symfony\Component\EventDispatcher\EventSubscriberInterface;
abstract class Plugin implements EventSubscriberInterface
{
private $container;
protected $container;
/**
* Constructor
@@ -17,6 +17,16 @@ abstract class Plugin implements EventSubscriberInterface
{
$this->container = $container;
}
protected function getSettings()
{
return $this->container->get('settings');
}
protected function getPluginSettings($plugin)
{
return $this->container->get('settings')['plugins'][$plugin];
}
protected function getRoute()
{