Example #1
0
 /**
  * Returns the definition to register in the container.
  *
  * Definitions must be indexed by their entry ID. For example:
  *
  *     return [
  *         'logger' => ...
  *         'mailer' => ...
  *     ];
  *
  * @return array
  */
 public function getDefinitions()
 {
     return [FactoryContract::class => function () {
         return new TwigFactory(new Twig_Environment(new Twig_Loader_Filesystem($this->app->viewsPath()), ['cache' => $this->app->storagePath('views')]));
     }];
 }