CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Reporting Security Issues
    • Privacy Policy
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Get Involved
    • Issues (Github)
    • Bakery
    • Featured Resources
    • Training
    • Meetups
    • My CakePHP
    • CakeFest
    • Newsletter
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C CakePHP 5.4 Chiffon API

  • Project:
    • CakePHP
      • CakePHP
      • Authentication
      • Authorization
      • Chronos
      • Elastic Search
      • Queue
  • Version:
    • 5.4
      • 5.4
      • 5.3
      • 5.2
      • 5.1
      • 5.0
      • 4.6
      • 4.5
      • 4.4
      • 4.3
      • 4.2
      • 4.1
      • 4.0
      • 3.10
      • 3.9
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Namespaces

  • Global
  • Cake
    • Cache
    • Collection
    • Command
    • Console
    • Container
      • Argument
      • Definition
      • Exception
      • Inflector
      • ServiceProvider
    • Controller
    • Core
    • Database
    • Datasource
    • Error
    • Event
    • Form
    • Http
    • I18n
    • Lock
    • Log
    • Mailer
    • Network
    • ORM
    • Routing
    • TestSuite
    • Utility
    • Validation
    • View

Class Definition

Namespace: Cake\Container\Definition

Property Summary

  • $alias protected
    string
  • $arguments protected
    array
  • $concrete protected
    mixed
  • $container protected
    Cake\Container\DefinitionContainerInterface|null
  • $methods protected
    array
  • $recursiveCheck protected
    array
  • $resolved protected
    mixed
  • $shared protected
    bool
  • $tags protected
    array

Method Summary

  • __construct() public
  • addArgument() public
  • addArguments() public
  • addMethodCall() public
  • addMethodCalls() public
  • addTag() public
  • getAlias() public
  • getConcrete() public
  • getContainer() abstract public
  • getTags() public
  • hasTag() public
  • invokeMethods() protected
  • isShared() public
  • normaliseAlias() public static
  • reflectArguments() public
  • resolve() public
  • resolveArguments() public
  • resolveCallable() protected
  • resolveClass() protected
  • resolveNew() public
  • setAlias() public
  • setConcrete() public
  • setContainer() public
  • setShared() public

Method Detail

__construct() ¶ public

__construct(string $id, mixed|null $concrete = null)
Parameters
string $id
mixed|null $concrete optional

addArgument() ¶ public

addArgument(mixed $arg, string|null $name = null): $this
Parameters
mixed $arg
string|null $name optional
Returns
$this

addArguments() ¶ public

addArguments(array $args): $this
Parameters
array $args
Returns
$this

addMethodCall() ¶ public

addMethodCall(string $method, array $args = []): $this
Parameters
string $method
array $args optional
Returns
$this

addMethodCalls() ¶ public

addMethodCalls(array $methods = []): $this
Parameters
array $methods optional
Returns
$this

addTag() ¶ public

addTag(string $tag): $this
Parameters
string $tag
Returns
$this

getAlias() ¶ public

getAlias(): string
Returns
string

getConcrete() ¶ public

getConcrete(): mixed
Returns
mixed

getContainer() ¶ abstract public

getContainer(): Cake\Container\DefinitionContainerInterface
Returns
Cake\Container\DefinitionContainerInterface

getTags() ¶ public

getTags(): array<string>
Returns
array<string>

hasTag() ¶ public

hasTag(string $tag): bool
Parameters
string $tag
Returns
bool

invokeMethods() ¶ protected

invokeMethods(object $instance): object
Parameters
object $instance
Returns
object

isShared() ¶ public

isShared(): bool
Returns
bool

normaliseAlias() ¶ public static

normaliseAlias(string $alias): string
Parameters
string $alias
Returns
string

reflectArguments() ¶ public

reflectArguments(ReflectionFunctionAbstract $method, array $args = []): array
Parameters
ReflectionFunctionAbstract $method
array $args optional
Returns
array

resolve() ¶ public

resolve(): mixed
Returns
mixed

resolveArguments() ¶ public

resolveArguments(array<Cake\Container\Argument\LiteralArgument|Cake\Container\Argument\ResolvableArgument> $arguments): array
Parameters
array<Cake\Container\Argument\LiteralArgument|Cake\Container\Argument\ResolvableArgument> $arguments
Returns
array

resolveCallable() ¶ protected

resolveCallable(callable $concrete): mixed
Parameters
callable $concrete
Returns
mixed

resolveClass() ¶ protected

resolveClass(class-string $concrete): object
Parameters
class-string $concrete
Returns
object
Throws
ReflectionException

resolveNew() ¶ public

resolveNew(): mixed
Returns
mixed

setAlias() ¶ public

setAlias(string $id): $this
Parameters
string $id
Returns
$this

setConcrete() ¶ public

setConcrete(mixed $concrete): $this
Parameters
mixed $concrete
Returns
$this

setContainer() ¶ public

setContainer(Cake\Container\DefinitionContainerInterface $container): $this
Parameters
Cake\Container\DefinitionContainerInterface $container
Returns
$this

setShared() ¶ public

setShared(bool $shared = true): $this
Parameters
bool $shared optional
Returns
$this

Property Detail

$alias ¶ protected

Type
string

$arguments ¶ protected

Type
array

$concrete ¶ protected

Type
mixed

$container ¶ protected

Type
Cake\Container\DefinitionContainerInterface|null

$methods ¶ protected

Type
array

$recursiveCheck ¶ protected

Type
array

$resolved ¶ protected

Type
mixed

$shared ¶ protected

Type
bool

$tags ¶ protected

Type
array
OpenHub
Pingping
Linode
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Reporting Security Issues
  • Privacy Policy
  • Logos & Trademarks
  • Community
  • Get Involved
  • Issues (Github)
  • Bakery
  • Featured Resources
  • Training
  • Meetups
  • My CakePHP
  • CakeFest
  • Newsletter
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs