public function validate( Configuration $configurable, string $environment ) {

        $projectConfigurable = new PrefixConfigurationDecorator($configurable, "project.default.");
        $environmentConfigurable = new PrefixConfigurationDecorator($configurable, "project.environments.$environment.");
        $config = new ConfigurationFallback($environmentConfigurable, $projectConfigurable);

        $this->getValidator()->validate($config, [
            'service-name' => 'required',
        ]);
	}
public function validate( Configuration $configurable, string $environment ) {

        $projectConfigurable = new PrefixConfigurationDecorator($configurable, "project.default.");
        $environmentConfigurable = new PrefixConfigurationDecorator($configurable, "project.environments.$environment.");
        $config = new ConfigurationFallback($environmentConfigurable, $projectConfigurable);

        $this->getValidator()->validate($config, [
            'service-name' => 'required',
        ]);
	}
public function validate ( Configuration $ configurable , string $ environment ) { $ projectConfigurable = new PrefixConfigurationDecorator ( $ configurable , "project.default." ) ; $ environmentConfigurable = new PrefixConfigurationDecorator ( $ configurable , "project.environments.$environment." ) ; $ config = new ConfigurationFallback ( $ environmentConfigurable , $ projectConfigurable ) ; $ this -> getValidator ( ) -> validate ( $ config , [ 'service-name' => 'required' , ] ) ; }
Ensure that the given environment has at least the minimal configuration options set to start and deploy this
blueprint

@param Configuration $configurable
@param string $environment
@throws ValidationFailedException
Ensure that the given environment has at least the minimal configuration options set to start and deploy this blueprint