Skip to content

Commit bee5759

Browse files
committed
moves trait to Chevron\Containers
1 parent e0c0c57 commit bee5759

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/Dispatcher/Traits/InjectableMethodParamsInvocationTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Chevron\Kernel\Dispatcher\Traits;
44

5-
trait InjectableMethodParamsInvocationTrait {
5+
trait ReflectiveDiMethodParamsTrait {
66

77
/**
88
* @param DiInterface $di
@@ -19,6 +19,7 @@ protected function getReflectiveDiMethodParams( $di, \ReflectionMethod $ref, arr
1919
}
2020
return $arguments;
2121
}
22+
2223
/**
2324
* @param DiInterface $di
2425
* @param string $className
@@ -34,6 +35,7 @@ protected function constructInstanceFromReflectiveDiMethodParams( $di, $classNam
3435
}
3536
return new $className;
3637
}
38+
3739
/**
3840
* @param DiInterface $di
3941
* @param object $class

src/Dispatcher/AbstractDispatchableController.php renamed to src/Dispatcher/example_AbstractDispatchableController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Chevron\Kernel\Dispatcher\Traits\DiAwareTrait;
66
use Chevron\Kernel\Dispatcher\Traits\RouteAwareTrait;
7-
use Chevron\Kernel\Dispatcher\Traits\InjectableMethodParamsInvocationTrait;
7+
use Chevron\Containers\Traits\ReflectiveDiMethodParamsTrait;
88
use Chevron\Kernel\Response\Traits\RedirectableControllerTrait;
99

1010
abstract class AbstractDispatchableController implements Interfaces\DispatchableInterface {

0 commit comments

Comments
 (0)