PHP 클래스 Bolt\Configuration\ResourceManager

Intended to simplify the ability to override resource location
저자: Ross Riley, [email protected]
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$app Silex\Application
$theApp Silex\Application
$urlPrefix string

보호된 프로퍼티들

프로퍼티 타입 설명
$classLoader Composer\Autoload\ClassLoader | null
$pathManager Eloquent\Pathogen\FileSystem\Factory\FileSystemPathFactory
$paths Eloquent\Pathogen\AbsolutePathInterface[]
$request string[]
$requestObject Symfony\Component\HttpFoundation\Request
$root Eloquent\Pathogen\AbsolutePathInterface
$urls array
$verifier LowLevelChecks | null

공개 메소드들

메소드 설명
__construct ( ArrayAccess $container ) Constructor initialises on the app root path.
findRelativePath ( string $frompath, string $topath ) : string Find the relative file system path between two file system paths.
getApp ( ) : Silex\Application Get the Bolt\Application object.
getClassLoader ( ) : Composer\Autoload\ClassLoader Get the Composer autoload ClassLoader.
getPath ( string $name ) : string Gets a path as a string.
getPathObject ( string $name ) : Eloquent\Pathogen\AbsolutePathInterface Gets a path as a PathInterface.
getPaths ( ) : PathsProxy Just don't use this.
getRequest ( string $name ) : string Get a request parameter.
getUrl ( string $name, boolean $includeBasePath = true ) : string Get a URL path definition.
getVerifier ( ) : Bolt\Configuration\Validation\ValidatorInterface Get the LowlevelChecks object.
hasPath ( string $name ) : boolean Checks if the given name has a path associated with it
initialize ( )
initializeConfig ( array $config ) Takes a loaded config array and uses it to initialize settings that depend on it.
initializeRequest ( Silex\Application $app, Request $request = null ) Takes a Request object and uses it to initialize settings that depend on the request.
postInitialize ( )
setApp ( Silex\Application $app ) Don't use!
setPath ( string $name, string $value ) : Eloquent\Pathogen\RelativePathInterface | Eloquent\Pathogen\AbsolutePathInterface Set a resource path.
setRequest ( string $name, string $value ) Set a parameter that describes the request.
setThemePath ( array $generalConfig ) This currently gets special treatment because of the processing order.
setUrl ( string $name, string $value ) Set a URL path definition.
setVerifier ( Bolt\Configuration\Validation\ValidatorInterface | null $verifier ) Set the LowlevelChecks object.
useLoader ( Composer\Autoload\ClassLoader $loader ) : Eloquent\Pathogen\RelativePathInterface | Eloquent\Pathogen\AbsolutePathInterface
verify ( )
verifyDb ( )

메소드 상세

__construct() 공개 메소드

Constructor initialises on the app root path.
public __construct ( ArrayAccess $container )
$container ArrayAccess ArrayAccess compatible DI container that must contain one of: 'classloader' of instance a ClassLoader will use introspection to find root path or 'rootpath' will be treated as an existing directory as string. Optional ones: 'request' - Symfony\Component\HttpFoundation\Request

findRelativePath() 공개 메소드

Find the relative file system path between two file system paths.
public findRelativePath ( string $frompath, string $topath ) : string
$frompath string Path to start from
$topath string Path we want to end up in
리턴 string Path leading from $frompath to $topath

getApp() 공개 정적인 메소드

Get the Bolt\Application object.
public static getApp ( ) : Silex\Application
리턴 Silex\Application

getClassLoader() 공개 메소드

Get the Composer autoload ClassLoader.
public getClassLoader ( ) : Composer\Autoload\ClassLoader
리턴 Composer\Autoload\ClassLoader

getPath() 공개 메소드

Subdirectories are automatically parsed to correct filesystem. For example: $bar = getPath('root/foo/bar');
public getPath ( string $name ) : string
$name string Name of path
리턴 string

getPathObject() 공개 메소드

Subdirectories are automatically parsed to correct filesystem. For example: $bar = getPath('root/foo/bar');
public getPathObject ( string $name ) : Eloquent\Pathogen\AbsolutePathInterface
$name string Name of path
리턴 Eloquent\Pathogen\AbsolutePathInterface

getPaths() 공개 메소드

Just don't use this.
사용 중단: since 3.0, to be removed in 4.0.
public getPaths ( ) : PathsProxy
리턴 PathsProxy

getRequest() 공개 메소드

Get a request parameter.
public getRequest ( string $name ) : string
$name string
리턴 string

getUrl() 공개 메소드

Get a URL path definition.
public getUrl ( string $name, boolean $includeBasePath = true ) : string
$name string
$includeBasePath boolean
리턴 string

getVerifier() 공개 메소드

Get the LowlevelChecks object.
public getVerifier ( ) : Bolt\Configuration\Validation\ValidatorInterface
리턴 Bolt\Configuration\Validation\ValidatorInterface

hasPath() 공개 메소드

Checks if the given name has a path associated with it
public hasPath ( string $name ) : boolean
$name string of path
리턴 boolean

initialize() 공개 메소드

public initialize ( )

initializeConfig() 공개 메소드

Takes a loaded config array and uses it to initialize settings that depend on it.
public initializeConfig ( array $config )
$config array

initializeRequest() 공개 메소드

Takes a Request object and uses it to initialize settings that depend on the request.
public initializeRequest ( Silex\Application $app, Request $request = null )
$app Silex\Application
$request Symfony\Component\HttpFoundation\Request

postInitialize() 공개 메소드

public postInitialize ( )

setApp() 공개 메소드

Don't use!
사용 중단: Deprecated since 3.0, to be removed in 4.0.
public setApp ( Silex\Application $app )
$app Silex\Application

setPath() 공개 메소드

Set a resource path.
public setPath ( string $name, string $value ) : Eloquent\Pathogen\RelativePathInterface | Eloquent\Pathogen\AbsolutePathInterface
$name string
$value string
리턴 Eloquent\Pathogen\RelativePathInterface | Eloquent\Pathogen\AbsolutePathInterface

setRequest() 공개 메소드

e.g. 'hostname', 'protocol' or 'canonical'
public setRequest ( string $name, string $value )
$name string
$value string

setThemePath() 공개 메소드

The theme path is needed before the app has constructed, so this is a shortcut to allow the Application constructor to pre-provide a theme path.
public setThemePath ( array $generalConfig )
$generalConfig array

setUrl() 공개 메소드

Set a URL path definition.
public setUrl ( string $name, string $value )
$name string
$value string

setVerifier() 공개 메소드

Set the LowlevelChecks object.
public setVerifier ( Bolt\Configuration\Validation\ValidatorInterface | null $verifier )
$verifier Bolt\Configuration\Validation\ValidatorInterface | null

useLoader() 공개 메소드

public useLoader ( Composer\Autoload\ClassLoader $loader ) : Eloquent\Pathogen\RelativePathInterface | Eloquent\Pathogen\AbsolutePathInterface
$loader Composer\Autoload\ClassLoader
리턴 Eloquent\Pathogen\RelativePathInterface | Eloquent\Pathogen\AbsolutePathInterface

verify() 공개 메소드

사용 중단: Deprecated since 3.1, to be removed in 4.0.
public verify ( )

verifyDb() 공개 메소드

사용 중단: Deprecated since 3.1, to be removed in 4.0.
public verifyDb ( )

프로퍼티 상세

$app 공개적으로 프로퍼티

public Application,Silex $app
리턴 Silex\Application

$classLoader 보호되어 있는 프로퍼티

protected ClassLoader,Composer\Autoload|null $classLoader
리턴 Composer\Autoload\ClassLoader | null

$pathManager 보호되어 있는 프로퍼티

protected FileSystemPathFactory,Eloquent\Pathogen\FileSystem\Factory $pathManager
리턴 Eloquent\Pathogen\FileSystem\Factory\FileSystemPathFactory

$paths 보호되어 있는 프로퍼티

protected AbsolutePathInterface[],Eloquent\Pathogen $paths
리턴 Eloquent\Pathogen\AbsolutePathInterface[]

$request 보호되어 있는 프로퍼티

protected string[] $request
리턴 string[]

$requestObject 보호되어 있는 프로퍼티

protected Request,Symfony\Component\HttpFoundation $requestObject
리턴 Symfony\Component\HttpFoundation\Request

$root 보호되어 있는 프로퍼티

protected AbsolutePathInterface,Eloquent\Pathogen $root
리턴 Eloquent\Pathogen\AbsolutePathInterface

$theApp 공개적으로 정적으로 프로퍼티

사용 중단: Deprecated since 3.0, to be removed in 4.0.
public static Application,Silex $theApp
리턴 Silex\Application

$urlPrefix 공개적으로 프로퍼티

public string $urlPrefix
리턴 string

$urls 보호되어 있는 프로퍼티

protected array $urls
리턴 array

$verifier 보호되어 있는 프로퍼티

protected LowLevelChecks|null $verifier
리턴 LowLevelChecks | null