コード例 #1
0
ファイル: PathPackage.php プロジェクト: gabiudrescu/Sylius
 /**
  * @param string $basePath
  * @param VersionStrategyInterface $versionStrategy
  * @param ThemeContextInterface $themeContext
  * @param PathResolverInterface $pathResolver
  * @param ContextInterface|null $context
  */
 public function __construct($basePath, VersionStrategyInterface $versionStrategy, ThemeContextInterface $themeContext, PathResolverInterface $pathResolver, ContextInterface $context = null)
 {
     parent::__construct($basePath, $versionStrategy, $context);
     $this->themeContext = $themeContext;
     $this->pathResolver = $pathResolver;
 }
コード例 #2
0
 public function __construct($basePath, VersionStrategy $versionStrategy)
 {
     parent::__construct($basePath, $versionStrategy);
 }
コード例 #3
0
ファイル: UnprefixedPathPackage.php プロジェクト: bolt/bolt
 /**
  * Constructor.
  *
  * @param string                   $prefix          A prefix to remove from path (before base path is applied).
  * @param string                   $basePath        The base path to be prepended to relative paths
  * @param VersionStrategyInterface $versionStrategy The version strategy
  * @param ContextInterface         $context         The request context
  */
 public function __construct($prefix, $basePath, VersionStrategyInterface $versionStrategy, ContextInterface $context)
 {
     parent::__construct($basePath, $versionStrategy, $context);
     $this->prefix = ltrim($prefix, '/');
 }