PHP 클래스 Jarves\Jarves

파일 보기 프로젝트 열기: jarves/jarves 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$configs Jarves\Configuration\Configs | Jarves\Configuration\Bundle[]
$utils Utils

공개 메소드들

메소드 설명
__construct ( JarvesConfig $jarvesConfig, string $adminPrefix, string $cacheDir, string $rootDir, string $environment, string $debugMode, Symfony\Component\HttpKernel\KernelInterface $kernel, Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, FieldTypes $fieldTypes )
getAdminPrefix ( ) : string Returns the normalize jarves_admin_prefix parameter.
getBundle ( string $bundleName ) : Symfony\Component\HttpKernel\Bundle\BundleInterface | null
getBundleDir ( string $bundleName ) : string | null
getBundleFromPath ( string $path, string &$bundleName = '' ) : null | Symfony\Component\HttpKernel\Bundle\BundleInterface
getBundleName ( string $bundleClass ) : string Returns the bundle name.
getBundles ( ) : Symfony\Component\HttpKernel\Bundle\BundleInterface[] Returns all Symfony Bundles.
getCache ( )
getCacheDir ( ) : string
getConfig ( $bundleName ) : Bundle | null Returns a configuration for a bundle.
getConfigs ( ) : Configs | Bundle[] Returns all configurations for all registered bundles.
getFieldTypes ( ) : FieldTypes
getId ( ) : string Returns the installation id.
getOrCreateConfig ( string $bundleName ) : Bundle | null
getRealConfig ( string $bundleName ) : Bundle Returns a real Bundle config object, which is being read from the configurations files without bootstrap. So this configuration does not contain any changes from autoCrud, object-attributes, field modifications and other configuration manipulations from the bootstrap.
getRequest ( ) : Request
getRoot ( ) : string
getRootDir ( ) : string
getShortBundleName ( string $bundleName ) : string Returns the short bundle name of $bundleName.
getSystemConfig ( ) : SystemConfig
getWebCacheDir ( ) : string
isActiveBundle ( string $bundleName ) : boolean Checks if a (jarves) bundle is activated.
isDebugMode ( ) : boolean
isJarvesBundle ( string $bundleName ) : boolean
loadBundleConfigs ( Cacher $cacher ) : null | callable Loads all configurations from all registered bundles (BundleName/Resources/config/jarves*.xml)
reset ( ) Resets current PageResponse;
resolveInternalPublicPath ( string $path ) : mixed Shortcut for $this->resolvePath($path, 'Resources/public')
resolvePath ( string $path, string $suffix = '', boolean $relativePath = false ) : string ('@JarvesBundle/Resources/public/test.png') => /var/www/jarves/src/Jarves/Resources/public/test.png ('@JarvesBundle/Resources/public/test.png', '', true) => src/Jarves/Resources/public/test.png
resolvePublicWebPath ( string $path ) : string ('@JarvesBundle/admin/js/test.js') => bundles/jarves/admin/js/test.js
resolveWebPath ( string $path ) : string ('@JarvesBundle/admin/js/test.js') => web/bundles/jarves/admin/js/test.js
setConfigs ( Configs $configs )
terminate ( ) Terminates everything, each post request event.

메소드 상세

__construct() 공개 메소드

public __construct ( JarvesConfig $jarvesConfig, string $adminPrefix, string $cacheDir, string $rootDir, string $environment, string $debugMode, Symfony\Component\HttpKernel\KernelInterface $kernel, Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, FieldTypes $fieldTypes )
$jarvesConfig JarvesConfig
$adminPrefix string
$cacheDir string
$rootDir string
$environment string
$debugMode string
$kernel Symfony\Component\HttpKernel\KernelInterface
$requestStack Symfony\Component\HttpFoundation\RequestStack
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$fieldTypes Jarves\Admin\FieldTypes\FieldTypes

getAdminPrefix() 공개 메소드

Returns the normalize jarves_admin_prefix parameter.
public getAdminPrefix ( ) : string
리턴 string

getBundle() 공개 메소드

public getBundle ( string $bundleName ) : Symfony\Component\HttpKernel\Bundle\BundleInterface | null
$bundleName string
리턴 Symfony\Component\HttpKernel\Bundle\BundleInterface | null

getBundleDir() 공개 메소드

public getBundleDir ( string $bundleName ) : string | null
$bundleName string full className or bundleName or short bundleName
리턴 string | null with leading / relative to root folder

getBundleFromPath() 공개 메소드

public getBundleFromPath ( string $path, string &$bundleName = '' ) : null | Symfony\Component\HttpKernel\Bundle\BundleInterface
$path string
$bundleName string will be modified when found
리턴 null | Symfony\Component\HttpKernel\Bundle\BundleInterface

getBundleName() 공개 메소드

Jarves\JarvesBundle => JarvesBundle
public getBundleName ( string $bundleClass ) : string
$bundleClass string
리턴 string

getBundles() 공개 메소드

Returns all Symfony Bundles.
public getBundles ( ) : Symfony\Component\HttpKernel\Bundle\BundleInterface[]
리턴 Symfony\Component\HttpKernel\Bundle\BundleInterface[]

getCache() 공개 메소드

public getCache ( )

getCacheDir() 공개 메소드

public getCacheDir ( ) : string
리턴 string

getConfig() 공개 메소드

Returns a configuration for a bundle.
public getConfig ( $bundleName ) : Bundle | null
$bundleName
리턴 Jarves\Configuration\Bundle | null

getConfigs() 공개 메소드

Returns all configurations for all registered bundles.
public getConfigs ( ) : Configs | Bundle[]
리턴 Jarves\Configuration\Configs | Jarves\Configuration\Bundle[]

getFieldTypes() 공개 메소드

public getFieldTypes ( ) : FieldTypes
리턴 Jarves\Admin\FieldTypes\FieldTypes

getId() 공개 메소드

Returns the installation id.
public getId ( ) : string
리턴 string

getOrCreateConfig() 공개 메소드

public getOrCreateConfig ( string $bundleName ) : Bundle | null
$bundleName string
리턴 Jarves\Configuration\Bundle | null

getRealConfig() 공개 메소드

When no configurations are found, it returns a completely new Jarves\Configuration\Bundle object.
public getRealConfig ( string $bundleName ) : Bundle
$bundleName string
리턴 Jarves\Configuration\Bundle

getRequest() 공개 메소드

사용 중단: use pageStack->getCurrentRequest
public getRequest ( ) : Request
리턴 Symfony\Component\HttpFoundation\Request

getRoot() 공개 메소드

public getRoot ( ) : string
리턴 string

getRootDir() 공개 메소드

public getRootDir ( ) : string
리턴 string

getShortBundleName() 공개 메소드

It's used for example in the web/bundles/ directory.
public getShortBundleName ( string $bundleName ) : string
$bundleName string
리턴 string

getSystemConfig() 공개 메소드

사용 중단: use jarvesConfig->getSystemConfig
public getSystemConfig ( ) : SystemConfig
리턴 Jarves\Configuration\SystemConfig

getWebCacheDir() 공개 메소드

public getWebCacheDir ( ) : string
리턴 string

isActiveBundle() 공개 메소드

Checks if a (jarves) bundle is activated.
public isActiveBundle ( string $bundleName ) : boolean
$bundleName string
리턴 boolean

isDebugMode() 공개 메소드

public isDebugMode ( ) : boolean
리턴 boolean

isJarvesBundle() 공개 메소드

public isJarvesBundle ( string $bundleName ) : boolean
$bundleName string
리턴 boolean

loadBundleConfigs() 공개 메소드

Loads all configurations from all registered bundles (BundleName/Resources/config/jarves*.xml)
public loadBundleConfigs ( Cacher $cacher ) : null | callable
$cacher Jarves\Cache\Cacher
리턴 null | callable returns a callable that should be called when config stuff have been registered

reset() 공개 메소드

Resets current PageResponse;
public reset ( )

resolveInternalPublicPath() 공개 메소드

('@JarvesBundle/admin/js/test.js') => /var/www/jarves/src/Jarves/Resources/public/admin/js/test.js
public resolveInternalPublicPath ( string $path ) : mixed
$path string
리턴 mixed

resolvePath() 공개 메소드

('@JarvesBundle/test.png', 'Resources/public/') => /var/www/jarves/src/Jarves/Resources/public/test.png ('@JarvesBundle/test.png') => /var/www/jarves/src/Jarves/test.png ('images/test.png') => /var/www/jarves/images/webtest.png
public resolvePath ( string $path, string $suffix = '', boolean $relativePath = false ) : string
$path string
$suffix string
$relativePath boolean
리턴 string without trailing slash when relative

resolvePublicWebPath() 공개 메소드

('images/test.png') => images/webtest.png ('routepath/do-something') => routepath/do-something ('routepath/do-something') => app_dev.php/routepath/do-something ('http://external.tld/style.css') => http://external.tld/style.css
public resolvePublicWebPath ( string $path ) : string
$path string
리턴 string

resolveWebPath() 공개 메소드

('images/test.png') => web/images/webtest.png
public resolveWebPath ( string $path ) : string
$path string
리턴 string

setConfigs() 공개 메소드

public setConfigs ( Configs $configs )
$configs Jarves\Configuration\Configs

terminate() 공개 메소드

Terminates everything, each post request event.
public terminate ( )

프로퍼티 상세

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

protected Configs,Jarves\Configuration|Bundle[],Jarves\Configuration $configs
리턴 Jarves\Configuration\Configs | Jarves\Configuration\Bundle[]

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

protected Utils,jarves $utils
리턴 Utils