Abstract Class Phalcon\Factory\AbstractConfigFactory
Source on GitHub
Namespace |
Phalcon\Factory |
|
Uses |
Phalcon\Config\ConfigInterface |
This file is part of the Phalcon Framework.
(c) Phalcon Team [email protected]
For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.
Metody
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;
Abstract Class Phalcon\Factory\AbstractFactory
Source on GitHub
Namespace |
Phalcon\Factory |
|
Uses |
Phalcon\Config\ConfigInterface |
|
Extends |
AbstractConfigFactory |
This file is part of the Phalcon Framework.
(c) Phalcon Team [email protected]
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;
Metody
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
Class Phalcon\Factory\Exception
Source on GitHub
Namespace |
Phalcon\Factory |
|
Extends |
\Exception |
This file is part of the Phalcon Framework.
(c) Phalcon Team [email protected]
For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.