ZF\Apigility\Admin\Model\ModulePathSpec::__construct PHP Method

__construct() public method

public __construct ( ZF\Configuration\ModuleUtils $modules, string $sourcePathSpec = self::PSR_0, string $applicationPath = "." )
$modules ZF\Configuration\ModuleUtils
$sourcePathSpec string
$applicationPath string
    public function __construct(ModuleUtils $modules, $sourcePathSpec = self::PSR_0, $applicationPath = ".")
    {
        $sourcePathSpec = strtolower($sourcePathSpec);
        if (!array_key_exists($sourcePathSpec, $this->psrSpecs)) {
            throw new InvalidArgumentException(sprintf("Invalid sourcePathSpec. Valid values are %s and %s", self::PSR_0, self::PSR_4));
        }
        $this->modules = $modules;
        $this->moduleSourcePathSpec = $this->psrSpecs[$sourcePathSpec];
        $this->applicationPath = $this->normalizePath($applicationPath);
        $this->currentSpec = $sourcePathSpec;
    }