public function canAutoCreate($className)
    {
        foreach ($this->autoCreateWhiteList as $regex) {
            if (preg_match($regex, $className)) {
                return true;
            }
        }

        return false;
    }
public function canAutoCreate($className)
    {
        foreach ($this->autoCreateWhiteList as $regex) {
            if (preg_match($regex, $className)) {
                return true;
            }
        }

        return false;
    }
public function canAutoCreate ( $ className ) { foreach ( $ this -> autoCreateWhiteList as $ regex ) { if ( preg_match ( $ regex , $ className ) ) { return true ; } } return false ; }
Check whether the Injector has been configured to allow automatic construction of the given FQCN as a dependency

@param string $className
@return bool
Check whether the Injector has been configured to allow automatic construction of the given FQCN as a dependency