Example #1
0
 /**
  * Get the registered component.
  *
  * @return string
  */
 protected static function getFacadeAccessor()
 {
     if (!static::$app) {
         static::$app = new Container();
         $provider = new FlattenServiceProvider(static::$app);
         $provider->register();
     }
     return 'flatten';
 }
Example #2
0
 /**
  * Set up the tests
  */
 public function setUp()
 {
     // Create Container
     $this->app = new Container();
     $provider = new FlattenServiceProvider($this->app);
     $provider->register();
     $this->app['url'] = $this->mockUrl();
     // Empty the cache
     $this->app['cache']->flush();
     $this->cache->flushAll();
     $this->storage->clear();
     $this->context->inConsole(false);
 }