src/Sulu/Bundle/HttpCacheBundle/EventSubscriber/InvalidationSubscriber.php
private function findUrlsByResourceLocator($resourceLocator, $locale, $webspace)
    {
        $scheme = 'http';
        if ($request = $this->requestStack->getCurrentRequest()) {
            $scheme = $request->getScheme();
        }

        return $this->webspaceManager->findUrlsByResourceLocator(
            $resourceLocator,
            $this->environment,
            $locale,
            $webspace,
            null,
            $scheme
        );
    }
private function findUrlsByResourceLocator($resourceLocator, $locale, $webspace)
    {
        $scheme = 'http';
        if ($request = $this->requestStack->getCurrentRequest()) {
            $scheme = $request->getScheme();
        }

        return $this->webspaceManager->findUrlsByResourceLocator(
            $resourceLocator,
            $this->environment,
            $locale,
            $webspace,
            null,
            $scheme
        );
    }
private function findUrlsByResourceLocator ( $ resourceLocator , $ locale , $ webspace ) { $ scheme = 'http' ; if ( $ request = $ this -> requestStack -> getCurrentRequest ( ) ) { $ scheme = $ request -> getScheme ( ) ; } return $ this -> webspaceManager -> findUrlsByResourceLocator ( $ resourceLocator , $ this -> environment , $ locale , $ webspace , null , $ scheme ) ; }
Returns array of resource-locators with "http" and "https".

@param string $resourceLocator
@param string $locale
@param string $webspace

@return string[]
Returns array of resource - locators with http and https .