Beispiel #1
0
 /**
  * Initializes the stream wrapper to load recipes within the Accompli package.
  */
 public function initializeStreamWrapper()
 {
     $stream = new Stream('accompli', array('recipe' => realpath(__DIR__ . '/Resources/recipe')), false);
     StreamManager::create()->registerStream($stream);
 }
 /**
  * Returns the stream instance by the uri scheme in path.
  *
  * @param string $path
  *
  * @return StreamInterface
  */
 private function getStreamByPathScheme($path)
 {
     $scheme = parse_url($path, PHP_URL_SCHEME);
     return $this->streamManager->getStream($scheme);
 }