src/Graviton/SecurityBundle/Authentication/Strategies/CookieFieldStrategy.php
protected function extractCoreId(Request $request, $text)
    {
        $pattern = "/((?m)(?<=\b".self::COOKIE_VALUE_CORE_ID."=)[^;]*)/i";
        preg_match($pattern, $text, $matches);

        if ($matches) {
            $request->attributes->set(self::CONFIGURATION_PARAMETER_CORE_ID, $matches[0]);

            return $matches[0];
        }

        return $text;
    }
protected function extractCoreId(Request $request, $text)
    {
        $pattern = "/((?m)(?<=\b".self::COOKIE_VALUE_CORE_ID."=)[^;]*)/i";
        preg_match($pattern, $text, $matches);

        if ($matches) {
            $request->attributes->set(self::CONFIGURATION_PARAMETER_CORE_ID, $matches[0]);

            return $matches[0];
        }

        return $text;
    }
protected function extractCoreId ( Request $ request , $ text ) { $ pattern = "/((?m)(?<=\b" . self :: COOKIE_VALUE_CORE_ID . "=)[^;]*)/i" ; preg_match ( $ pattern , $ text , $ matches ) ; if ( $ matches ) { $ request -> attributes -> set ( self :: CONFIGURATION_PARAMETER_CORE_ID , $ matches [ 0 ] ) ; return $ matches [ 0 ] ; } return $ text ; }
Finds and extracts the core system id from tha cookie.

@param Request $request Request stack that controls the lifecycle of requests
@param string  $text    String to be examined for the core id.

@return string
Finds and extracts the core system id from tha cookie .