1 | <?php |
||
18 | class ContainerAwareCallback extends Callback |
||
19 | { |
||
20 | /** |
||
21 | * @var \Illuminate\Contracts\Container\Container |
||
22 | */ |
||
23 | protected $container; |
||
24 | |||
25 | /** |
||
26 | * @param array $specs Specification for the callback to be called |
||
27 | * @param mixed $callable Closure, callable or string that will be called if specifications pass |
||
28 | * @param \Illuminate\Contracts\Container\Container $container The service container that will be used to resolve the callable |
||
29 | */ |
||
30 | public function __construct(array $specs, $callable, ContainerInterface $container) |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function call(TransitionEvent $event) |
||
63 | |||
64 | /** |
||
65 | * Determine if the given string is in Class@method syntax. |
||
66 | * |
||
67 | * @return bool |
||
68 | */ |
||
69 | protected function isCallableWithAtSign() |
||
73 | } |
||
74 |