Get the collectors' locator

@return LocatorInterface
180405
public function getCollectorsLocator() {
		if ($this->collectorsLocator === null) {
			$this->collectorsLocator = new InitializerNamespace(self::NAMESPACE_COLLECTORS);
		}
		
		return $this->collectorsLocator;
	}
1322981
public static function getIPLocation(){
        //initialize the browser
        $adapter = new GuzzleHttpAdapter();
        
        //create geocoder
        $geocoder = new \Geocoder\Provider\FreeGeoIp($adapter);

        if (!isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
          $client_ip = $_SERVER['REMOTE_ADDR'];
        }
        else {
          $client_ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
        }

        return $geocoder->geocode($client_ip);
    }
318670
@Override
	public String getLocator() {
	    if (locator == null) {
	        return null;
	    } else if (locator instanceof StringLocatorAwareBy) {
	        return ((StringLocatorAwareBy) locator).getLocator();
	    } else {
	        return locator.toString();
	    }
	}
296837
protected function getCollectionFromObjectByValue()
    {
        $object = $this->getObject();
        $getter = 'get' . ucfirst($this->getCollectionName());

        if (!method_exists($object, $getter)) {
            throw new InvalidArgumentException(
                sprintf(
                    'The getter %s to access collection %s in object %s does not exist',
                    $getter,
                    $this->getCollectionName(),
                    get_class($object)
                )
            );
        }

        return $object->$getter();
    }
575985
public function getRouter()
    {
        if (!isset($this->router)) {
            $container = clone $this->getContainer();
            $container->delegate(new ReflectionContainer);
            $this->router = (new RouteCollection($container));
        }

        /** @var RouteCollection $router */
        $router = $this->validateContract($this->router, RouteCollection::class);
        return $router;
    }
355056
protected function resolveCollector(): ?string
    {
        $value = $this->getModuleInfo()['collector'] ?? null;

        return is_string($value) ? $value : null;
    }
1251157
public function getLocations()
    {
        if ($this->matchesCakeVersion('>=', '3.0.0')) {
            $this->locations['plugin'] =  $this->composer->getConfig()->get('vendor-dir') . '/{$vendor}/{$name}/';
        }
        return $this->locations;
    }
222351
public function getIterator()
    {
        $aResult = array();
        $iStart  = ($this->itemsPerPage * ($this->page - 1));
        if ($iStart < 0) {
            throw new \OutOfBoundsException('Start index cant no be lower then 1');
        }
        try {
            $iRestOfResults                    = ($this->itemsPerPage - 1);
            $mFirstValues                      = $this->collection->seek($iStart);
            $aResult[$this->collection->key()] = $mFirstValues;
            while ($iRestOfResults > 0) {
                $mValue = $this->collection->scNext();
                if ($mValue === AbstractCollection::NOT_SET_FLAG) {
                    throw new \OutOfBoundsException();
                }
                $aResult[$this->collection->key()] = $mValue;
                $iRestOfResults--;
            }

        } catch (\OutOfBoundsException $oException) {
            // do nothing, this exception is not critical
        }
        $sClassName = get_class($this->collection);

        return new $sClassName($aResult);
    }
1374518
protected function getLocator()
    {
    	if ($this->locator) {
    		return $this->locator;
    	}
    	
    	$controller = $this->getController();
    
    	if (!$controller instanceof ServiceLocatorAwareInterface) {
    		throw new \Exception('ServiceBroker plugin requires controller implements ServiceLocatorAwareInterface');
    	}
    	
    	$locator = $controller->getServiceLocator();
    	
    	if (!$locator instanceof ServiceLocatorInterface) {
    		throw new \Exception('ServiceBroker plugin requires controller implements ServiceLocatorInterface');
    	}
    	
    	$this->locator = $locator;
    	return $this->locator;
    }
1096662
public function getPropertyAccessor()
    {
        return new PropertyAccessor($this->magicCall, $this->throwExceptionOnInvalidIndex, $this->cacheItemPool, $this->throwExceptionOnInvalidPropertyPath);
    }
203923
protected function initLocator()
    {
        $services = $this->options->get('services');

        if (is_array($services) && !$this->isServicesInited) {
            $this->isServicesInited = true;
            foreach ($services as $serviceName => $serviceDescription) {
                $instance = $this->instantiateFromArray($serviceDescription);
                $this->locator->set($serviceName, $instance);
            }
        }

        return $this->locator;
    }
723635
public function getFinder()
    {
        if (!$this->finder) {
            $this->finder = new FileViewFinder($this->getFilesystem(), $this->dumpPaths());
        }

        return $this->finder;
    }
249319
public function collectionLoader()
    {
        if (!isset($this->collectionLoader)) {
            throw new RuntimeException(sprintf(
                'Collection Loader is not defined for "%s"',
                get_class($this)
            ));
        }

        return $this->collectionLoader;
    }
614250
public function collectionLoaderFactory()
    {
        if (!isset($this->collectionLoaderFactory)) {
            throw new RuntimeException(sprintf(
                'Collection Loader Factory is not defined for [%s]',
                get_class($this)
            ));
        }

        return $this->collectionLoaderFactory;
    }
1244477
public function getDispatcher()
    {
        if (!$this->dispatcher) {
            $this->dispatcher = new \wf\app\web\Dispatcher($this);
        }

        return $this->dispatcher;
    }
684371
protected function getRoutesResolver()
    {
        return function () {
            // Create fast-route collector
            $routeCollector = new RouteCollector(new RouteParser, new DataGenerator);

            // Get routes data from application
            foreach ($this->getRoutes() as $route) {
                $routeCollector->addRoute($route['method'], $route['uri'], $route['action']);
            }

            return $routeCollector->getData();
        };
    }
1016028
protected function getConfigHandler()
    {
        if (null !== $typeInfo = ServiceManager::getServiceType($this->type)) {
            // lookup related service type config model
            return $typeInfo->getConfigHandler();
        }

        return null;
    }