Properties

$alias

$alias : \ManaPHP\AliasInterface

Type

\ManaPHP\AliasInterface

$dispatcher

$dispatcher : \ManaPHP\Http\DispatcherInterface

Type

\ManaPHP\Http\DispatcherInterface

$router

$router : \ManaPHP\Http\RouterInterface

Type

\ManaPHP\Http\RouterInterface

$url

$url : \ManaPHP\Http\UrlInterface

Type

\ManaPHP\Http\UrlInterface

$request

$request : \ManaPHP\Http\RequestInterface

Type

\ManaPHP\Http\RequestInterface

$response

$response : \ManaPHP\Http\ResponseInterface

Type

\ManaPHP\Http\ResponseInterface

$cookies

$cookies : \ManaPHP\Http\CookiesInterface

Type

\ManaPHP\Http\CookiesInterface

$flash

$flash : \ManaPHP\Mvc\View\FlashInterface

Type

\ManaPHP\Mvc\View\FlashInterface

$flashSession

$flashSession : \ManaPHP\Mvc\View\FlashInterface

Type

\ManaPHP\Mvc\View\FlashInterface

$session

$session : \ManaPHP\Http\SessionInterface

Type

\ManaPHP\Http\SessionInterface

$eventsManager

$eventsManager : \ManaPHP\Event\ManagerInterface

Type

\ManaPHP\Event\ManagerInterface

$db

$db : \ManaPHP\Data\DbInterface

Type

\ManaPHP\Data\DbInterface

$crypt

$crypt : \ManaPHP\Security\CryptInterface

Type

\ManaPHP\Security\CryptInterface

$validator

$validator : \ManaPHP\Validating\ValidatorInterface

Type

\ManaPHP\Validating\ValidatorInterface

$view

$view : \ManaPHP\Mvc\ViewInterface

Type

\ManaPHP\Mvc\ViewInterface

$loader

$loader : \ManaPHP\Loader

Type

\ManaPHP\Loader

$logger

$logger : \ManaPHP\Logging\LoggerInterface

Type

\ManaPHP\Logging\LoggerInterface

$renderer

$renderer : \ManaPHP\Html\RendererInterface

Type

\ManaPHP\Html\RendererInterface

$configure

$configure : \ManaPHP\Configuration\Configure

Type

\ManaPHP\Configuration\Configure

$settings

$settings : \ManaPHP\Configuration\SettingsInterface

Type

\ManaPHP\Configuration\SettingsInterface

$redisCache

$redisCache : \Redis|\ManaPHP\Data\RedisInterface

Type

\Redis|\ManaPHP\Data\RedisInterface

$redisDb

$redisDb : \Redis|\ManaPHP\Data\RedisInterface

Type

\Redis|\ManaPHP\Data\RedisInterface

$redisBroker

$redisBroker : \Redis|\ManaPHP\Data\RedisInterface

Type

\Redis|\ManaPHP\Data\RedisInterface

$cache

$cache : \ManaPHP\Caching\CacheInterface

Type

\ManaPHP\Caching\CacheInterface

$viewsCache

$viewsCache : \ManaPHP\Caching\CacheInterface

Type

\ManaPHP\Caching\CacheInterface

$httpClient

$httpClient : \ManaPHP\Http\ClientInterface

Type

\ManaPHP\Http\ClientInterface

$restClient

$restClient : \ManaPHP\Http\ClientInterface

Type

\ManaPHP\Http\ClientInterface

$authorization

$authorization : \ManaPHP\Http\AuthorizationInterface

Type

\ManaPHP\Http\AuthorizationInterface

$captcha

$captcha : \ManaPHP\Http\CaptchaInterface

Type

\ManaPHP\Http\CaptchaInterface

$identity

$identity : \ManaPHP\IdentityInterface

Type

\ManaPHP\IdentityInterface

$msgQueue

$msgQueue : \ManaPHP\Messaging\QueueInterface

Type

\ManaPHP\Messaging\QueueInterface

$translation

$translation : \ManaPHP\I18n\TranslatorInterface

Type

\ManaPHP\I18n\TranslatorInterface

$swordCompiler

$swordCompiler : \ManaPHP\Html\Renderer\Engine\Sword\Compiler

Type

\ManaPHP\Html\Renderer\Engine\Sword\Compiler

$htmlPurifier

$htmlPurifier : \ManaPHP\Html\PurifierInterface

Type

\ManaPHP\Html\PurifierInterface

$rabbitmq

$rabbitmq : \ManaPHP\Messaging\AmqpInterface

Type

\ManaPHP\Messaging\AmqpInterface

$relationsManager

$relationsManager : \ManaPHP\Data\Relation\ManagerInterface

Type

\ManaPHP\Data\Relation\ManagerInterface

$mailer

$mailer : \ManaPHP\Mailing\MailerInterface

Type

\ManaPHP\Mailing\MailerInterface

$mongodb

$mongodb : \ManaPHP\Data\MongodbInterface

Type

\ManaPHP\Data\MongodbInterface

$translator

$translator : \ManaPHP\I18n\TranslatorInterface

Type

\ManaPHP\I18n\TranslatorInterface

$bosClient

$bosClient : \ManaPHP\Bos\ClientInterface

Type

\ManaPHP\Bos\ClientInterface

$wspClient

$wspClient : \ManaPHP\Ws\Pushing\ClientInterface

Type

\ManaPHP\Ws\Pushing\ClientInterface

$pubSub

$pubSub : \ManaPHP\Messaging\PubSubInterface

Type

\ManaPHP\Messaging\PubSubInterface

$_definitions

$_definitions : array

Type

array

$_instances

$_instances : array

Type

array

$_default

$_default : \ManaPHP\Di

First DI build

Type

\ManaPHP\Di

Methods

__construct()

__construct() 

getDefault()

getDefault() : static

Return the First DI created

Returns

static

set()

set(string  $name, mixed  $definition) : static

Registers a component in the components container

Parameters

string $name
mixed $definition

Returns

static

setShared()

setShared(string  $name, mixed  $definition) : static

Registers an "always shared" component in the components container

Parameters

string $name
mixed $definition

Returns

static

remove()

remove(string  $name) : static

Removes a component in the components container

Parameters

string $name

Returns

static

get()

get(string  $name, array  $parameters = array()) : mixed

Resolves the component based on its configuration

Parameters

string $name
array $parameters

Returns

mixed

getShared()

getShared(string  $name) : mixed

Resolves a component, the resolved component is stored in the DI, subsequent requests for this component will return the same instance

Parameters

string $name

Returns

mixed

getDefinitions()

getDefinitions(string  $pattern = null) : array

Match against shell wildcard pattern.

Parameters

string $pattern

Returns

array

getDefinition()

getDefinition(string  $name) : mixed

Parameters

string $name

Returns

mixed

getInstances()

getInstances() : array

Returns

array

__get()

__get(string  $propertyName) : mixed

Magic method __get

Parameters

string $propertyName

Returns

mixed

__set()

__set(string  $name, mixed  $value) 

Parameters

string $name
mixed $value

__isset()

__isset(string  $name) : boolean

Parameters

string $name

Returns

boolean

has()

has(string  $name) : boolean

Check whether the DI contains a component by a name

Parameters

string $name

Returns

boolean

_completeClassName()

_completeClassName(string  $name, string  $className) : string

Parameters

string $name
string $className

Returns

string

_inferClassName()

_inferClassName(string  $name) : string

Parameters

string $name

Returns

string