Skip to content

Phalcon factory

NOTE

All classes are prefixed with Phalcon

Factory\AbstractConfigFactory

Abstract Source on GitHub

Uses Phalcon\Config\ConfigInterface

Method Summary

Methods

Protected · 4

checkConfig()

protected function checkConfig( mixed $config ): array;

Checks the config if it is a valid object

checkConfigElement()

protected function checkConfigElement(
    array $config,
    string $element
): array;

Checks if the config has "adapter"

getException()

protected function getException( string $message ): \Exception;

Returns the exception object for the child class

getExceptionClass()

protected function getExceptionClass(): string;

Factory\AbstractFactory

Abstract Source on GitHub

Uses Phalcon\Config\ConfigInterface

Method Summary

Properties

protected array $mapper = []
protected array $services = []

Methods

Protected · 3

getService()

protected function getService( string $name ): mixed;

Checks if a service exists and throws an exception

getServices()

abstract protected function getServices(): array;

Returns the adapters for the factory

init()

protected function init( array $services = [] ): void;

Initialize services/add new services

Factory\Exception

Class Source on GitHub

  • \Exception
    • Phalcon\Factory\Exception