Skip to content

Phalcon factory

NOTE

All classes are prefixed with Phalcon

Factory\AbstractConfigFactory Abstract

Source on GitHub

  • Namespace

    • Phalcon\Factory
  • Uses

    • Phalcon\Config\ConfigInterface
  • Extends

  • Implements

This file is part of the Phalcon Framework.

(c) Phalcon Team team@phalcon.io

For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.

Methods

protected function checkConfig( mixed $config ): array;
Checks the config if it is a valid object

protected function checkConfigElement( array $config, string $element ): array;
Checks if the config has "adapter"

protected function getException( string $message ): \Exception;
Returns the exception object for the child class

protected function getExceptionClass(): string;

Factory\AbstractFactory Abstract

Source on GitHub

  • Namespace

    • Phalcon\Factory
  • Uses

    • Phalcon\Config\ConfigInterface
  • Extends

    AbstractConfigFactory

  • Implements

This file is part of the Phalcon Framework.

(c) Phalcon Team team@phalcon.io

For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.

Properties

/**
 * @var array
 */
protected $mapper;

/**
 * @var array
 */
protected $services;

Methods

protected function getService( string $name ): mixed;
Checks if a service exists and throws an exception

abstract protected function getServices(): array;
Returns the adapters for the factory

protected function init( array $services = [] ): void;
Initialize services/add new services

Factory\Exception

Source on GitHub

  • Namespace

    • Phalcon\Factory
  • Uses

  • Extends

    \Exception

  • Implements

This file is part of the Phalcon Framework.

(c) Phalcon Team team@phalcon.io

For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.