Shopware\PluginCreator\Services\WorkingDirectoryProvider\LegacyOutputDirectoryProvider::__construct PHP Method

__construct() public method

public __construct ( Shopware\PluginCreator\Services\WorkingDirectoryProvider\RootDetector\RootDetectorInterface $rootDetector, string $name, string $namespace )
$rootDetector Shopware\PluginCreator\Services\WorkingDirectoryProvider\RootDetector\RootDetectorInterface
$name string
$namespace string
    public function __construct(RootDetectorInterface $rootDetector, $name, $namespace)
    {
        if (!$this->isValidNamespace($namespace) && strlen($namespace)) {
            throw new \Exception(sprintf("Invalid namespace given: %s", $namespace));
        }
        $this->namespace = $namespace;
        $this->rootDetector = $rootDetector;
        $this->name = $name;
    }