本文整理汇总了PHP中Puli\Manager\Assert\Assert::systemPath方法的典型用法代码示例。如果您正苦于以下问题:PHP Assert::systemPath方法的具体用法?PHP Assert::systemPath怎么用?PHP Assert::systemPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Puli\Manager\Assert\Assert
的用法示例。
在下文中一共展示了Assert::systemPath方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Creates a new install info.
*
* @param string $packageName The package name. Must be a non-empty string.
* @param string $installPath The path where the package is installed.
* If a relative path is given, the path is
* assumed to be relative to the install path
* of the root package.
*
* @throws InvalidArgumentException If any of the arguments is invalid.
*/
public function __construct($packageName, $installPath)
{
Assert::packageName($packageName);
Assert::systemPath($installPath);
$this->packageName = $packageName;
$this->installPath = $installPath;
}
示例2: __construct
/**
* Creates a new install info.
*
* @param string $moduleName The module name. Must be a non-empty string.
* @param string $installPath The path where the module is installed.
* If a relative path is given, the path is
* assumed to be relative to the install path
* of the root module.
*
* @throws InvalidArgumentException If any of the arguments is invalid.
*/
public function __construct($moduleName, $installPath)
{
Assert::moduleName($moduleName);
Assert::systemPath($installPath);
$this->moduleName = $moduleName;
$this->installPath = $installPath;
}