diff options
Diffstat (limited to 'app/Core')
-rw-r--r-- | app/Core/Base.php | 5 | ||||
-rw-r--r-- | app/Core/Plugin/Base.php | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/app/Core/Base.php b/app/Core/Base.php index 71d54413..7503e840 100644 --- a/app/Core/Base.php +++ b/app/Core/Base.php @@ -34,6 +34,7 @@ use Pimple\Container; * @property \Integration\Sendgrid $sendgrid * @property \Integration\SlackWebhook $slackWebhook * @property \Integration\Smtp $smtp + * @property \Formatter\ProjectGanttFormatter $projectGanttFormatter * @property \Formatter\TaskFilterGanttFormatter $taskFilterGanttFormatter * @property \Formatter\TaskFilterAutoCompleteFormatter $taskFilterAutoCompleteFormatter * @property \Formatter\TaskFilterCalendarFormatter $taskFilterCalendarFormatter @@ -53,6 +54,10 @@ use Pimple\Container; * @property \Model\LastLogin $lastLogin * @property \Model\Link $link * @property \Model\Notification $notification + * @property \Model\NotificationType $notificationType + * @property \Model\NotificationFilter $notificationFilter + * @property \Model\OverdueNotification $overdueNotification + * @property \Model\WebNotification $webNotification * @property \Model\Project $project * @property \Model\ProjectActivity $projectActivity * @property \Model\ProjectAnalytic $projectAnalytic diff --git a/app/Core/Plugin/Base.php b/app/Core/Plugin/Base.php index a72a0cd6..1b7ac8f5 100644 --- a/app/Core/Plugin/Base.php +++ b/app/Core/Plugin/Base.php @@ -19,6 +19,17 @@ abstract class Base extends \Core\Base abstract public function initialize(); /** + * Override default CSP rules + * + * @access public + * @param array $rules + */ + public function setContentSecurityPolicy(array $rules) + { + $this->container['cspRules'] = $rules; + } + + /** * Returns all classes that needs to be stored in the DI container * * @access public |