2
2
3
3
Generic and extensible callable invoker.
4
4
5
- [ ![ Build Status ] ( https://img.shields.io/travis/ PHP-DI/Invoker. svg?style=flat-square )] ( https://travis-ci.org /PHP-DI/Invoker )
5
+ [ ![ CI ] ( https://github.com/ PHP-DI/Invoker/actions/workflows/ci.yml/badge. svg )] ( https://github.com /PHP-DI/Invoker/actions/workflows/ci.yml )
6
6
[ ![ Latest Version] ( https://img.shields.io/github/release/PHP-DI/invoker.svg?style=flat-square )] ( https://packagist.org/packages/PHP-DI/invoker )
7
7
[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/php-di/invoker.svg?style=flat-square )] ( https://packagist.org/packages/php-di/invoker )
8
8
@@ -12,7 +12,7 @@ Who doesn't need an over-engineered `call_user_func()`?
12
12
13
13
### Named parameters
14
14
15
- Does this [ Silex] ( http ://silex.sensiolabs.org ) example look familiar:
15
+ Does this [ Silex] ( https ://github.com/silexphp/Silex#readme ) example look familiar:
16
16
17
17
``` php
18
18
$app->get('/project/{project}/issue/{issue}', function ($project, $issue) {
@@ -28,7 +28,7 @@ $app->command('greet [name] [--yell]', function ($name, $yell) {
28
28
});
29
29
```
30
30
31
- Same pattern in [ Slim] ( http ://www.slimframework.com) :
31
+ Same pattern in [ Slim] ( https ://www.slimframework.com) :
32
32
33
33
``` php
34
34
$app->get('/hello/:name', function ($name) {
@@ -66,7 +66,7 @@ $app->command('greet [name]', function ($name, OutputInterface $output) {
66
66
});
67
67
```
68
68
69
- [ PHP-DI] ( http ://php-di.org/doc/container.html) provides a way to invoke a callable and resolve all dependencies from the container using type-hints:
69
+ [ PHP-DI] ( https ://php-di.org/doc/container.html) provides a way to invoke a callable and resolve all dependencies from the container using type-hints:
70
70
71
71
``` php
72
72
$container->call(function (Logger $logger, EntityManager $em) {
@@ -230,4 +230,4 @@ $invoker->call('WelcomeController::home');
230
230
231
231
That feature can be used as the base building block for a framework's dispatcher.
232
232
233
- Again, any [ PSR-11] ( http ://www.php-fig.org/psr/psr-11/) compliant container can be provided.
233
+ Again, any [ PSR-11] ( https ://www.php-fig.org/psr/psr-11/) compliant container can be provided.
0 commit comments