src/Helper/ContainerDebugger.php
private function isInWhitelist($serviceName)
    {
        foreach ($this->whiteList as $pattern) {
            if (!preg_match($pattern, $serviceName)) {
                return false;
            }
        }

        return true;
    }
private function isInWhitelist($serviceName)
    {
        foreach ($this->whiteList as $pattern) {
            if (!preg_match($pattern, $serviceName)) {
                return false;
            }
        }

        return true;
    }
private function isInWhitelist ( $ serviceName ) { foreach ( $ this -> whiteList as $ pattern ) { if ( ! preg_match ( $ pattern , $ serviceName ) ) { return false ; } } return true ; }
Returns true if one of the patterns is match

@param string $serviceName
@return bool
Returns true if one of the patterns is match