public function boot()
 {
     $this->app->singleton('GlideApi', function () {
         $factory = new ServerFactory([]);
         return $factory->getApi();
     });
     if (!$this->app->routesAreCached()) {
         require __DIR__ . '/routes.php';
     }
 }
Ejemplo n.º 2
0
 public function testGetApi()
 {
     $server = new ServerFactory();
     $this->assertInstanceOf('League\\Glide\\Api\\Api', $server->getApi());
 }