/**
  * Initializes annotations in application.
  *
  * @param Core $core
  */
 public function init(Core $core)
 {
     AnnotationRegistry::registerAutoloadNamespace('\\Dgafka\\AuthorizationSecurity\\UI\\Annotation\\Type', __DIR__ . '/Type');
     $expressionReader = new ExpressionReader(new ExpressionLanguage($core->config()->debugMode() ? null : new ExpressionLanguageCache(new FilesystemCache($core->config()->cachePath() . '/expressions'))));
     $aopKernel = Kernel::getInstance();
     $aopKernel->init(array('debug' => $core->config()->debugMode(), 'cacheDir' => $core->config()->cachePath() . '/aop', 'includePaths' => $core->config()->includePaths()));
     $core->initialize(DIContainer::getInstance(), $expressionReader);
 }
 /**
  * Initializes annotations in application.
  *
  * @param Core $core
  */
 public function init(Core $core)
 {
     $expressionReader = new ExpressionReader(new ExpressionLanguage($core->config()->debugMode() ? null : new ExpressionLanguageCache(new FilesystemCache($core->config()->cachePath() . '/expressions'))));
     $core->initialize(DIContainer::getInstance(), $expressionReader);
 }