class StandardPackageProvider extends AbstractPackageProvider (View source)

A simple, standard package provider; provide a Concrete\Core\Package\Package controller, and a path (or array of paths) to PHP entity classes. This uses the annotation driver.

Class PackageProvider

Properties

protected Package $pkg from  AbstractPackageProvider
protected Application $app from  AbstractPackageProvider
protected array $locations

Methods

__construct(Application $app, Package $pkg, array $locations)

Constructor

CachedReader
getLegacyAnnotationReader()

Get LegacyAnnotationReader

CachedReader
getStandardAnnotationReader()

Get StandardAnnotationReader

CachedReader
getAnnotationReader()

Get the correct AnnotationReader based on the packages support for LegacyCore

bool
packageSupportsLegacyCore()

Package supports legacy core

getDrivers()

No description

Details

__construct(Application $app, Package $pkg, array $locations)

Constructor

Parameters

Application $app
Package $pkg
array $locations

protected CachedReader getLegacyAnnotationReader()

Get LegacyAnnotationReader

Return Value

CachedReader

with a \Doctrine\Common\Annotations\SimpleAnnotationReader

protected CachedReader getStandardAnnotationReader()

Get StandardAnnotationReader

Return Value

CachedReader

with a \Doctrine\Common\Annotations\AnnotationReader

protected CachedReader getAnnotationReader()

Get the correct AnnotationReader based on the packages support for LegacyCore

Return Value

CachedReader

protected bool packageSupportsLegacyCore()

Package supports legacy core

Return Value

bool

DriverInterface[] getDrivers()

No description

Return Value

DriverInterface[]