Skip to content

Calling functions and resolving their parameters using the container#162

Closed
mnapoli wants to merge 17 commits intomasterfrom
feature/CallFunction
Closed

Calling functions and resolving their parameters using the container#162
mnapoli wants to merge 17 commits intomasterfrom
feature/CallFunction

Conversation

@mnapoli
Copy link
Copy Markdown
Member

@mnapoli mnapoli commented May 19, 2014

Coverage Status
Scrutinizer Code Quality

$container->call(function (Logger $logger, EntityManager $em) {
    // do stuff
});
interface InvokerInterface
{
    public function call($callable, array $parameters = array());
}

Using defined parameters:

$parameters = [
    'data' => /* some variable */
];

$container->call(function (Logger $logger, $data) {
    // ...
}, $parameters);

@mnapoli mnapoli mentioned this pull request Jun 3, 2014
Merged
11 tasks
@mnapoli mnapoli changed the title WIP Calling functions and resolving their parameters using the container Calling functions and resolving their parameters using the container Jun 5, 2014
@mnapoli
Copy link
Copy Markdown
Member Author

mnapoli commented Jun 5, 2014

Merged in the 4.2 branch.

@mnapoli mnapoli closed this Jun 5, 2014
@mnapoli mnapoli deleted the feature/CallFunction branch June 5, 2014 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants