protected function defineArgumentProviders($argumentSetup, $argument)
    {
        if (! array_key_exists('mappings', $argumentSetup)) {
            throw new InvalidMappingsException(
                sprintf(
                    _('Failed to define argument providers for argument "%1$s". '
                      . 'Reason: The key "mappings" was not found.'),
                    $argument
                )
            );
        }

        array_walk(
            $argumentSetup['mappings'],
            [$this, 'addArgumentDefinition'],
            [$argument, $argumentSetup['interface'] ?: null]
        );
    }
protected function defineArgumentProviders($argumentSetup, $argument)
    {
        if (! array_key_exists('mappings', $argumentSetup)) {
            throw new InvalidMappingsException(
                sprintf(
                    _('Failed to define argument providers for argument "%1$s". '
                      . 'Reason: The key "mappings" was not found.'),
                    $argument
                )
            );
        }

        array_walk(
            $argumentSetup['mappings'],
            [$this, 'addArgumentDefinition'],
            [$argument, $argumentSetup['interface'] ?: null]
        );
    }
protected function defineArgumentProviders ( $ argumentSetup , $ argument ) { if ( ! array_key_exists ( 'mappings' , $ argumentSetup ) ) { throw new InvalidMappingsException ( sprintf ( _ ( 'Failed to define argument providers for argument "%1$s". ' . 'Reason: The key "mappings" was not found.' ) , $ argument ) ) ; } array_walk ( $ argumentSetup [ 'mappings' ] , [ $ this , 'addArgumentDefinition' ] , [ $ argument , $ argumentSetup [ 'interface' ] ? : null ] ) ; }
Tell our Injector how to produce required arguments.

@since 0.2.0

@param string $argumentSetup Argument providers setup from configuration file.
@param string $argument      The argument to provide.

@throws InvalidMappingsException If a required config key could not be found.
Tell our Injector how to produce required arguments .