PHP 클래스 Neos\Flow\Package\Package

상속: implements Neos\Flow\Package\PackageInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$autoloadConfiguration array
$autoloadTypes string[]
$composerName string composer name for this package
$flattenedAutoloadConfiguration array
$namespace string The namespace of the classes contained in this package
$namespaces string[] Array of all declared autoload namespaces contained in this package
$objectManagementEnabled boolean Disable this flag if you don't need object management for your package and want to save some memory.
$packageKey string Unique key of this package. Example for the Flow package: "Neos.Flow"
$packagePath string Full path to this package's main directory
$protected boolean If this package is protected and therefore cannot be deactivated or deleted

공개 메소드들

메소드 설명
__construct ( string $packageKey, string $composerName, string $packagePath, array $autoloadConfiguration = [] ) Constructor
boot ( Bootstrap $bootstrap ) : void Invokes custom PHP code directly after the package manager has been initialized.
getAutoloadConfiguration ( ) : array Get the autoload configuration for this package. Any valid composer "autoload" configuration.
getAutoloadPaths ( ) : array
getAutoloadTypes ( ) : string[]
getClassFiles ( ) : Generator Returns the array of filenames of the class files
getComposerManifest ( string $key = null ) : array | mixed Returns contents of Composer manifest - or part there of.
getComposerName ( ) : string Returns the packages composer name
getConfigurationPath ( ) : string Returns the full path to this package's Configuration directory
getFlattenedAutoloadConfiguration ( ) : array Get a flattened array of autoload configurations that have a predictable pattern (PSR-0, PSR-4)
getFunctionalTestsClassFiles ( ) : array Returns the array of filenames of class files provided by functional tests contained in this package
getFunctionalTestsPath ( ) : string Returns the full path to this package's functional tests directory
getInstalledVersion ( ) : string Get the installed package version (from composer) and as fallback the version given by composer manifest.
getNamespaces ( ) : array Returns array of all declared autoload namespaces contained in this package
getPackageKey ( ) : string Returns the package key of this package.
getPackagePath ( ) : string Returns the full path to this package's main directory
getResourcesPath ( ) : string Returns the full path to this package's Resources directory
isObjectManagementEnabled ( ) : boolean Tells if files in the Classes directory should be registered and object management enabled for this package.
isProtected ( ) : boolean Tells if this package is protected and therefore cannot be deactivated or deleted
setProtected ( boolean $protected ) : void Sets the protection flag of the package

보호된 메소드들

메소드 설명
explodeAutoloadConfiguration ( ) : void Brings the composer autoload configuration into an easy to use format for various parts of Flow.
getClassesInNormalizedAutoloadPath ( string $baseAutoloadPath, string $autoloadNamespace ) : Generator
isPathAutoloadEntryPoint ( string $path ) : boolean
normalizeAutoloadPath ( string $autoloadType, string $autoloadNamespace, string $autoloadPath ) : string

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $packageKey, string $composerName, string $packagePath, array $autoloadConfiguration = [] )
$packageKey string Key of this package
$composerName string
$packagePath string Absolute path to the location of the package's composer manifest
$autoloadConfiguration array

boot() 공개 메소드

Invokes custom PHP code directly after the package manager has been initialized.
public boot ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap The current bootstrap
리턴 void

explodeAutoloadConfiguration() 보호된 메소드

Brings the composer autoload configuration into an easy to use format for various parts of Flow.
protected explodeAutoloadConfiguration ( ) : void
리턴 void

getAutoloadConfiguration() 공개 메소드

Get the autoload configuration for this package. Any valid composer "autoload" configuration.
public getAutoloadConfiguration ( ) : array
리턴 array

getAutoloadPaths() 공개 메소드

public getAutoloadPaths ( ) : array
리턴 array

getAutoloadTypes() 공개 메소드

public getAutoloadTypes ( ) : string[]
리턴 string[]

getClassFiles() 공개 메소드

Returns the array of filenames of the class files
public getClassFiles ( ) : Generator
리턴 Generator A Generator for class names (key) and their filename, including the absolute path.

getClassesInNormalizedAutoloadPath() 보호된 메소드

protected getClassesInNormalizedAutoloadPath ( string $baseAutoloadPath, string $autoloadNamespace ) : Generator
$baseAutoloadPath string
$autoloadNamespace string
리턴 Generator

getComposerManifest() 공개 메소드

Returns contents of Composer manifest - or part there of.
public getComposerManifest ( string $key = null ) : array | mixed
$key string Optional. Only return the part of the manifest indexed by 'key'
리턴 array | mixed

getComposerName() 공개 메소드

Returns the packages composer name
public getComposerName ( ) : string
리턴 string

getConfigurationPath() 공개 메소드

Returns the full path to this package's Configuration directory
public getConfigurationPath ( ) : string
리턴 string Path to this package's Configuration directory

getFlattenedAutoloadConfiguration() 공개 메소드

Get a flattened array of autoload configurations that have a predictable pattern (PSR-0, PSR-4)
public getFlattenedAutoloadConfiguration ( ) : array
리턴 array Keys: "namespace", "classPath", "mappingType"

getFunctionalTestsClassFiles() 공개 메소드

Returns the array of filenames of class files provided by functional tests contained in this package
public getFunctionalTestsClassFiles ( ) : array
리턴 array An array of class names (key) and their filename, including the relative path to the package's directory

getFunctionalTestsPath() 공개 메소드

Returns the full path to this package's functional tests directory
public getFunctionalTestsPath ( ) : string
리턴 string Path to this package's functional tests directory

getInstalledVersion() 공개 메소드

Get the installed package version (from composer) and as fallback the version given by composer manifest.
public getInstalledVersion ( ) : string
리턴 string

getNamespaces() 공개 메소드

Returns array of all declared autoload namespaces contained in this package
public getNamespaces ( ) : array
리턴 array

getPackageKey() 공개 메소드

Returns the package key of this package.
public getPackageKey ( ) : string
리턴 string

getPackagePath() 공개 메소드

Returns the full path to this package's main directory
public getPackagePath ( ) : string
리턴 string Path to this package's main directory

getResourcesPath() 공개 메소드

Returns the full path to this package's Resources directory
public getResourcesPath ( ) : string
리턴 string Path to this package's Resources directory

isObjectManagementEnabled() 공개 메소드

Tells if files in the Classes directory should be registered and object management enabled for this package.

isPathAutoloadEntryPoint() 보호된 메소드

protected isPathAutoloadEntryPoint ( string $path ) : boolean
$path string
리턴 boolean

isProtected() 공개 메소드

Tells if this package is protected and therefore cannot be deactivated or deleted
public isProtected ( ) : boolean
리턴 boolean

normalizeAutoloadPath() 보호된 메소드

protected normalizeAutoloadPath ( string $autoloadType, string $autoloadNamespace, string $autoloadPath ) : string
$autoloadType string
$autoloadNamespace string
$autoloadPath string
리턴 string

setProtected() 공개 메소드

Sets the protection flag of the package
public setProtected ( boolean $protected ) : void
$protected boolean TRUE if the package should be protected, otherwise FALSE
리턴 void

프로퍼티 상세

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

protected array $autoloadConfiguration
리턴 array

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

protected string[] $autoloadTypes
리턴 string[]

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

composer name for this package
protected string $composerName
리턴 string

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

protected array $flattenedAutoloadConfiguration
리턴 array

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

The namespace of the classes contained in this package
protected string $namespace
리턴 string

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

Array of all declared autoload namespaces contained in this package
protected string[] $namespaces
리턴 string[]

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

Disable this flag if you don't need object management for your package and want to save some memory.
protected bool $objectManagementEnabled
리턴 boolean

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

Unique key of this package. Example for the Flow package: "Neos.Flow"
protected string $packageKey
리턴 string

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

Full path to this package's main directory
protected string $packagePath
리턴 string

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

If this package is protected and therefore cannot be deactivated or deleted
protected bool $protected
리턴 boolean