Ejemplo n.º 1
0
 /**
  * Bind PHPExcel classes
  * @return void
  */
 protected function bindPHPExcelClass()
 {
     // Set object
     $me = $this;
     // Bind the PHPExcel class
     $this->app['phpexcel'] = $this->app->share(function () use($me) {
         // Set locale
         $me->setLocale();
         // Set the caching settings
         $me->setCacheSettings();
         // Init phpExcel
         $excel = new PHPExcel();
         $excel->setDefaultProperties();
         return $excel;
     });
 }