/**
  * {@inheritdoc}
  */
 public function setPathPrefix($prefix)
 {
     $prefix = ltrim($prefix, '/');
     return parent::setPathPrefix($prefix);
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function applyPathPrefix($path)
 {
     $prefixedPath = parent::applyPathPrefix($path);
     return str_replace('/', DIRECTORY_SEPARATOR, $prefixedPath);
 }
Example #3
0
 /**
  * Apply the path prefix.
  *
  * @param string $path
  *
  * @return string prefixed path
  */
 public function applyPathPrefix($path)
 {
     $prefixed = parent::applyPathPrefix($path);
     return '/' . ltrim($prefixed, '/');
 }
Example #4
0
 /**
  * Apply the path prefix
  *
  * @param   string  $path
  * @return  string  prefixed path
  */
 public function applyPathPrefix($path)
 {
     $path = parent::applyPathPrefix($path);
     return '/' . rtrim($path, '/');
 }