PHP 클래스 Bolt\Extension\Manager

저자: Gawain Lynch ([email protected])
파일 보기 프로젝트 열기: bolt/bolt

보호된 프로퍼티들

프로퍼티 타입 설명
$composerNames string[]
$extensions Bolt\Extension\ResolvedExtension[]

공개 메소드들

메소드 설명
__construct ( Bolt\Filesystem\FilesystemInterface $extensions, Bolt\Filesystem\FilesystemInterface $web, Bolt\Logger\FlashLoggerInterface $flashLogger, Config $config ) Constructor.
add ( Bolt\Extension\ExtensionInterface $extension, Bolt\Filesystem\Handler\DirectoryInterface $baseDir = null, Bolt\Filesystem\Handler\DirectoryInterface $webDir = null, string | null $composerName = null ) : Bolt\Extension\ResolvedExtension Add an extension to be registered.
addManagedExtensions ( ) Load a collection of extension classes.
all ( ) : Bolt\Extension\ResolvedExtension[] Get all installed extensions.
get ( string | null $id ) : Bolt\Extension\ExtensionInterface | null Get an installed extension class.
getResolved ( string | null $id ) : Bolt\Extension\ResolvedExtension | null Get the resolved form of an installed extension class.
register ( Silex\Application $app ) Call register() for each extension.

보호된 메소드들

메소드 설명
getApp ( )

비공개 메소드들

메소드 설명
addManagedExtension ( Bolt\Composer\EventListener\PackageDescriptor $descriptor ) Load a single extension.
isClassLoadable ( string $className ) : boolean Check if a class is loadable.
loadPackageDescriptors ( ) : Bolt\Composer\EventListener\PackageDescriptor[] Load the extension autoload.json cache file and build the PackageDescriptor array.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Bolt\Filesystem\FilesystemInterface $extensions, Bolt\Filesystem\FilesystemInterface $web, Bolt\Logger\FlashLoggerInterface $flashLogger, Config $config )
$extensions Bolt\Filesystem\FilesystemInterface
$web Bolt\Filesystem\FilesystemInterface
$flashLogger Bolt\Logger\FlashLoggerInterface
$config Bolt\Config

add() 공개 메소드

Add an extension to be registered.
public add ( Bolt\Extension\ExtensionInterface $extension, Bolt\Filesystem\Handler\DirectoryInterface $baseDir = null, Bolt\Filesystem\Handler\DirectoryInterface $webDir = null, string | null $composerName = null ) : Bolt\Extension\ResolvedExtension
$extension Bolt\Extension\ExtensionInterface
$baseDir Bolt\Filesystem\Handler\DirectoryInterface
$webDir Bolt\Filesystem\Handler\DirectoryInterface
$composerName string | null
리턴 Bolt\Extension\ResolvedExtension

addManagedExtensions() 공개 메소드

Load a collection of extension classes.

all() 공개 메소드

Get all installed extensions.
public all ( ) : Bolt\Extension\ResolvedExtension[]
리턴 Bolt\Extension\ResolvedExtension[]

get() 공개 메소드

Get an installed extension class.
public get ( string | null $id ) : Bolt\Extension\ExtensionInterface | null
$id string | null The extension ID or composer name
리턴 Bolt\Extension\ExtensionInterface | null

getApp() 보호된 메소드

사용 중단: Deprecated since 3.0, to be removed in 4.0.
protected getApp ( )

getResolved() 공개 메소드

Get the resolved form of an installed extension class.
public getResolved ( string | null $id ) : Bolt\Extension\ResolvedExtension | null
$id string | null The extension ID or composer name
리턴 Bolt\Extension\ResolvedExtension | null

register() 공개 메소드

Call register() for each extension.
public register ( Silex\Application $app )
$app Silex\Application

프로퍼티 상세

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

protected string[] $composerNames
리턴 string[]

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

protected ResolvedExtension[],Bolt\Extension $extensions
리턴 Bolt\Extension\ResolvedExtension[]