/**
  * {@inheritDoc}
  */
 public function read($sessionId)
 {
     if ($this->files->exists($path = $this->path . DS . $sessionId)) {
         return $this->files->get($path);
     }
     return '';
 }
 /**
  * Find the given view in the list of paths.
  *
  * @param  string  $name
  * @param  array   $paths
  * @return string
  *
  * @throws \InvalidArgumentException
  */
 protected function findViewFile($name)
 {
     foreach ($this->getPossibleViewFiles($name) as $file) {
         if ($this->files->exists($file)) {
             return $file;
         }
     }
 }
 /**
  * Load the environment variables for the given environment.
  *
  * @param  string  $environment
  * @return array
  */
 public function load($environment = null)
 {
     if ($environment == 'production') {
         $environment = null;
     }
     if (!$this->files->exists($path = $this->getFile($environment))) {
         return array();
     } else {
         return $this->files->getRequire($path);
     }
 }
 /**
  * Remove an item from the cache.
  *
  * @param  string  $key
  * @return void
  */
 public function forget($key)
 {
     $file = $this->path($key);
     if ($this->files->exists($file)) {
         $this->files->delete($file);
     }
 }
 /**
  * Load the service provider manifest JSON file.
  *
  * @return array
  */
 public function loadManifest()
 {
     $path = $this->manifestPath . '/services.json';
     // The service manifest is a file containing a JSON representation of every
     // service provided by the application and whether its provider is using
     // deferred loading or should be eagerly loaded on each request to us.
     if ($this->files->exists($path)) {
         $manifest = json_decode($this->files->get($path), true);
         return array_merge($this->default, $manifest);
     }
 }