class Factory

Factory class

Constants

EXTENSIONS_NAMESPACE

MODULES_NAMESAPCE

CONTROLLERS_NAMESPACE

API_CONTROLLERS_NAMESPACE

INTERFACES_NAMESPACE

Methods

static void
setCoreNamespace(string $namespace)

Set core namspace

static object|null
createInstance(string $class, array|null $args = null, string|null $extension = null)

Create object

static RuleInterface
createRule(string $name, array|null $args = null)

Create validator rule

static object|null
createSchema(string $schemaClass, string|null $extension = null)

Create db schema object

static mixed
getConstant(string $class, string $name)

Get class constant

static object|null
createModule(string $module, string $class, array|null $args = null)

Create module object

static object|null
createExtension(string $extension, string $class, array|null $args = null)

Create extension

static JobInterface|null
createJob(string $class, string|null $extension = null, string|null $name = null, array $params = [])

Create Job

static string
getEventSubscriberClass(string $baseClass, string|null $extension = null)

Get event subscriber full class name

static object|null
createEventSubscriber(string $baseClass, string|null $extension = null)

Create event subscriber

static string
getClassNamespace(string $class)

Get class namspace

static string
getFullClassName(string $class)

Get full core class name

static string
getModuleNamespace(string $module)

Get module namespace

static string
getModuleClass(string $module, string $baseClass)

Get module full class name

static string
getExtensionControllerClass(string|null $extension, string $baseClass)

Get extension controller full class name

static Controller|null
createController(Container $container, string $baseClass, string|null $extension)

Create controller

static string
getExtensionControllersNamespace(string|null $extension)

Get extension controller namespace

static string
getExtensionEventSubscriberClass(string $baseClass, string|null $extension)

Get extension subscriber full class name

static string
getExtensionNamespace(string|null $extension)

Get extension namespace

static string
getExtensionClassName(string|null $extension, string $baseClass)

Get extension full class name

static string
getModuleConsoleClassName(string $module, string $baseClass)

Get module console command full class name

static string
getExtensionConsoleClassName(string|null $extension, string $baseClass)

Get extension console command full class name

static string
getFullInterfaceName(string $baseName)

Get full interface name

static string
getJobClassName(string $class, string|null $extension)

Get job full class name

static string
getJobsNamespace(string|null $extension = null)

Get job namespace

static string
getModelClass(string $class, string|null $extension = null)

Get model full class name

static string
getExtensionModelNamespace(string|null $extension)

Get extension namespace

static string
getControllerClass(string $class)

Get controller full class name

static string
getValidatorRuleClass(string $baseClass)

Get validator rule full class name

static string
getValidatorFiltersClass(string $baseClass)

Get validator filter full class name

static string
getSystemEventsNamespace()

Get system events namespace

static string
getExtensionSubscribersNamespace(string|null $extension)

Get extension event subscribers namespace

static string
getSchemaNamespace(string|null $extension = null)

Get db schema namespace

static string
getSchemaClass(string $baseClass, string|null $extension)

Get db schema class

Details

at line 33
static void setCoreNamespace(string $namespace)

Set core namspace

Parameters

string $namespace

Return Value

void

at line 48
static object|null createInstance(string $class, array|null $args = null, string|null $extension = null)

Create object

Parameters

string $class
array|null $args
string|null $extension

Return Value

object|null

at line 68
static RuleInterface createRule(string $name, array|null $args = null)

Create validator rule

Parameters

string $name
array|null $args

Return Value

RuleInterface

at line 82
static object|null createSchema(string $schemaClass, string|null $extension = null)

Create db schema object

Parameters

string $schemaClass
string|null $extension

Return Value

object|null

at line 97
static mixed getConstant(string $class, string $name)

Get class constant

Parameters

string $class
string $name

Return Value

mixed

at line 110
static object|null createModule(string $module, string $class, array|null $args = null)

Create module object

Parameters

string $module
string $class
array|null $args

Return Value

object|null

at line 125
static object|null createExtension(string $extension, string $class, array|null $args = null)

Create extension

Parameters

string $extension
string $class
array|null $args

Return Value

object|null

at line 142
static JobInterface|null createJob(string $class, string|null $extension = null, string|null $name = null, array $params = [])

Create Job

Parameters

string $class
string|null $extension
string|null $name
array $params

Return Value

JobInterface|null

at line 167
static string getEventSubscriberClass(string $baseClass, string|null $extension = null)

Get event subscriber full class name

Parameters

string $baseClass
string|null $extension

Return Value

string

at line 183
static object|null createEventSubscriber(string $baseClass, string|null $extension = null)

Create event subscriber

Parameters

string $baseClass
string|null $extension

Return Value

object|null

at line 197
static string getClassNamespace(string $class)

Get class namspace

Parameters

string $class

Return Value

string

at line 208
static string getFullClassName(string $class)

Get full core class name

Parameters

string $class

Return Value

string

at line 219
static string getModuleNamespace(string $module)

Get module namespace

Parameters

string $module

Return Value

string

at line 231
static string getModuleClass(string $module, string $baseClass)

Get module full class name

Parameters

string $module
string $baseClass

Return Value

string

at line 243
static string getExtensionControllerClass(string|null $extension, string $baseClass)

Get extension controller full class name

Parameters

string|null $extension
string $baseClass

Return Value

string

at line 256
static Controller|null createController(Container $container, string $baseClass, string|null $extension)

Create controller

Parameters

Container $container
string $baseClass
string|null $extension

Return Value

Controller|null

at line 269
static string getExtensionControllersNamespace(string|null $extension)

Get extension controller namespace

Parameters

string|null $extension

Return Value

string

at line 281
static string getExtensionEventSubscriberClass(string $baseClass, string|null $extension)

Get extension subscriber full class name

Parameters

string $baseClass
string|null $extension

Return Value

string

at line 292
static string getExtensionNamespace(string|null $extension)

Get extension namespace

Parameters

string|null $extension

Return Value

string

at line 304
static string getExtensionClassName(string|null $extension, string $baseClass)

Get extension full class name

Parameters

string|null $extension
string $baseClass

Return Value

string

at line 316
static string getModuleConsoleClassName(string $module, string $baseClass)

Get module console command full class name

Parameters

string $module
string $baseClass

Return Value

string

at line 328
static string getExtensionConsoleClassName(string|null $extension, string $baseClass)

Get extension console command full class name

Parameters

string|null $extension
string $baseClass

Return Value

string

at line 339
static string getFullInterfaceName(string $baseName)

Get full interface name

Parameters

string $baseName

Return Value

string

at line 351
static string getJobClassName(string $class, string|null $extension)

Get job full class name

Parameters

string $class
string|null $extension

Return Value

string

at line 362
static string getJobsNamespace(string|null $extension = null)

Get job namespace

Parameters

string|null $extension

Return Value

string

at line 378
static string getModelClass(string $class, string|null $extension = null)

Get model full class name

Parameters

string $class
string|null $extension

Return Value

string

at line 393
static string getExtensionModelNamespace(string|null $extension)

Get extension namespace

Parameters

string|null $extension

Return Value

string

at line 404
static string getControllerClass(string $class)

Get controller full class name

Parameters

string $class

Return Value

string

at line 415
static string getValidatorRuleClass(string $baseClass)

Get validator rule full class name

Parameters

string $baseClass

Return Value

string

at line 431
static string getValidatorFiltersClass(string $baseClass)

Get validator filter full class name

Parameters

string $baseClass

Return Value

string

at line 441
static string getSystemEventsNamespace()

Get system events namespace

Return Value

string

at line 452
static string getExtensionSubscribersNamespace(string|null $extension)

Get extension event subscribers namespace

Parameters

string|null $extension

Return Value

string

at line 463
static string getSchemaNamespace(string|null $extension = null)

Get db schema namespace

Parameters

string|null $extension

Return Value

string

at line 479
static string getSchemaClass(string $baseClass, string|null $extension)

Get db schema class

Parameters

string $baseClass
string|null $extension

Return Value

string