The text before $provider
specifies what should the argument be. In this case it should be an instance of ServiceProviderInterface
. Read more about type declaration here:
http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration
More Related Contents:
- remove duplicate key array from php [duplicate]
- Reference — What does this symbol mean in PHP?
- Is there a use-case for singletons with database access in PHP?
- PHP method chaining or fluent interface?
- What is the best method to merge two PHP objects?
- Best practice on PHP singleton classes [duplicate]
- Why does PHP 5.2+ disallow abstract static class methods?
- What is the syntax for accessing PHP object properties? [closed]
- declare property as object?
- How to use objects from other namespaces and how to import namespaces in PHP
- If Singletons are bad then why is a Service Container good?
- How do I get a PHP class constructor to call its parent’s parent’s constructor?
- When should I use stdClass and when should I use an array in php oo code?
- How to use class methods as callbacks
- Cast the current object ($this) to a descendent class
- php object attribute with dot in name
- When do I use static variables/functions in php?
- Getting static property from a class with dynamic class name in PHP
- Chaining Static Methods in PHP?
- Creating anonymous objects in php
- Magic __get getter for static properties in PHP
- Reference Guide: What does this symbol mean in PHP? (PHP Syntax)
- PHP get all arguments as array?
- How to implement a decorator in PHP?
- Why does PHP allow “incompatible” constructors?
- PHP’s function to list all objects’s properties and methods
- Passing variable from controller to view in CodeIgniter
- PHP – Implement logging mechanism to file in several classes
- Cannot use concatenation when declaring default class properties in PHP?
- How do I use a class method as a callback function?