concrete/src/Geolocator/GeolocatorController.php
protected function getFileRecord($file)
    {
        $result = null;
        $segment = implode('/', [DIRNAME_GEOLOCATION, $this->geolocator->getGeolocatorHandle(), $file]);
        $fileLocator = $this->app->make(FileLocator::class);
        /* @var FileLocator $fileLocator */
        $package = $this->geolocator->getGeolocatorPackage();
        if ($package !== null) {
            $fileLocator->addPackageLocation($package->getPackageHandle());
        }

        return $fileLocator->getRecord($segment);
    }
protected function getFileRecord($file)
    {
        $result = null;
        $segment = implode('/', [DIRNAME_GEOLOCATION, $this->geolocator->getGeolocatorHandle(), $file]);
        $fileLocator = $this->app->make(FileLocator::class);
        /* @var FileLocator $fileLocator */
        $package = $this->geolocator->getGeolocatorPackage();
        if ($package !== null) {
            $fileLocator->addPackageLocation($package->getPackageHandle());
        }

        return $fileLocator->getRecord($segment);
    }
protected function getFileRecord ( $ file ) { $ result = null ; $ segment = implode ( '/' , [ DIRNAME_GEOLOCATION , $ this -> geolocator -> getGeolocatorHandle ( ) , $ file ] ) ; $ fileLocator = $ this -> app -> make ( FileLocator :: class ) ; /* @var FileLocator $fileLocator */ $ package = $ this -> geolocator -> getGeolocatorPackage ( ) ; if ( $ package !== null ) { $ fileLocator -> addPackageLocation ( $ package -> getPackageHandle ( ) ) ; } return $ fileLocator -> getRecord ( $ segment ) ; }
Get the path to a geolocator file.

@param Geolocator $geolocator
@param string $file

@return \Concrete\Core\Filesystem\FileLocator\Record
Get the path to a geolocator file .