vendor/rdlowrey/auryn/lib/Provider.php
/**
     * Register a mutator callable to modify objects after instantiation
     *
     * @param string $classInterfaceOrTraitName
     * @param mixed $executable Any callable or provisionable executable method
     * @throws \Auryn\BadArgumentException
     * @return \Auryn\Provider Returns the current instance
     */
Register a mutator callable to modify objects after instantiation
@param string $classInterfaceOrTraitName
@param mixed $executable Any callable or provisionable executable method
@throws \Auryn\BadArgumentException
@return \Auryn\Provider Returns the current instance
Register a mutator callable to modify objects after instantiation @param string $classInterfaceOrTraitName @param mixed $executable Any callable or provisionable executable method @throws \ Auryn \ BadArgumentException @return \ Auryn \ Provider Returns the current instance
public function prepare($classInterfaceOrTraitName, $executable) {
        if (!$this->canExecute($executable)) {
            throw new BadArgumentException(
                $this->errorMessages[self::E_CALLABLE],
                self::E_CALLABLE
            );
        }
        $normalizedName = $this->normalizeClassName($classInterfaceOrTraitName);
        $this->prepares[$normalizedName] = $executable;
        return $this;
    }
public function prepare ( $ classInterfaceOrTraitName , $ executable ) { if ( ! $ this -> canExecute ( $ executable ) ) { throw new BadArgumentException ( $ this -> errorMessages [ self :: E_CALLABLE ] , self :: E_CALLABLE ) ; } $ normalizedName = $ this -> normalizeClassName ( $ classInterfaceOrTraitName ) ; $ this -> prepares [ $ normalizedName ] = $ executable ; return $ this ; }
Register a mutator callable to modify objects after instantiation
 @param string $classInterfaceOrTraitName
 @param mixed $executable Any callable or provisionable executable method
 @throws \Auryn\BadArgumentException
 @return \Auryn\Provider Returns the current instance
Register a mutator callable to modify objects after instantiation @param string $classInterfaceOrTraitName @param mixed $executable Any callable or provisionable executable method @throws \ Auryn \ BadArgumentException @return \ Auryn \ Provider Returns the current instance