PluginProvider.php
private function configure(array $options = []): array
    {
        $defaults = [
            'max_restarts' => 10,
        ];

        $config = array_merge($defaults, $options);

        // Make sure no invalid values are provided
        if (count($config) !== count($defaults)) {
            throw new LogicException(sprintf('Valid options to the PluginProviders are: %s', implode(', ', array_values($defaults))));
        }

        return $config;
    }
private function configure(array $options = []): array
    {
        $defaults = [
            'max_restarts' => 10,
        ];

        $config = array_merge($defaults, $options);

        // Make sure no invalid values are provided
        if (count($config) !== count($defaults)) {
            throw new LogicException(sprintf('Valid options to the PluginProviders are: %s', implode(', ', array_values($defaults))));
        }

        return $config;
    }
private function configure ( array $ options = [ ] ) : array { $ defaults = [ 'max_restarts' => 10 , ] ; $ config = array_merge ( $ defaults , $ options ) ; // Make sure no invalid values are provided if ( count ( $ config ) !== count ( $ defaults ) ) { throw new LogicException ( sprintf ( 'Valid options to the PluginProviders are: %s' , implode ( ', ' , array_values ( $ defaults ) ) ) ) ; } return $ config ; }
Configure the plugin provider.

@param array $options

@return array
Configure the plugin provider .