Skip to content

Phalcon Factory

Updated View as Markdown

Factory\AbstractConfigFactory

AbstractSource 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

AbstractSource on GitHub

Uses Phalcon\Config\ConfigInterface

Method Summary

Properties

protectedarray$mapper = []
protectedarray$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

ClassSource on GitHub
  • \Exception
    • Phalcon\Factory\Exception

Type to search…

↑↓ navigate↵ selectEsc close