File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change 1616use Hyperf \Context \ApplicationContext ;
1717use Hyperf \Di \Annotation \AnnotationCollector ;
1818use Hyperf \Di \Annotation \AspectCollector ;
19- use Hyperf \Di \ReflectionManager ;
2019use Hyperf \Stdlib \SplPriorityQueue ;
2120
2221trait ProxyTrait
@@ -33,30 +32,6 @@ protected static function __proxyCall(
3332 return $ result ;
3433 }
3534
36- /**
37- * @TODO This method will be called everytime, should optimize it later.
38- * @deprecated v3.2
39- */
40- protected static function __getParamsMap (string $ className , string $ method , array $ args ): array
41- {
42- $ map = [
43- 'keys ' => [],
44- 'order ' => [],
45- ];
46- $ reflectParameters = ReflectionManager::reflectMethod ($ className , $ method )->getParameters ();
47- $ leftArgCount = count ($ args );
48- foreach ($ reflectParameters as $ reflectionParameter ) {
49- $ arg = $ reflectionParameter ->isVariadic () ? $ args : array_shift ($ args );
50- if (! isset ($ arg ) && $ leftArgCount <= 0 ) {
51- $ arg = $ reflectionParameter ->getDefaultValue ();
52- }
53- --$ leftArgCount ;
54- $ map ['keys ' ][$ reflectionParameter ->getName ()] = $ arg ;
55- $ map ['order ' ][] = $ reflectionParameter ->getName ();
56- }
57- return $ map ;
58- }
59-
6035 protected static function handleAround (ProceedingJoinPoint $ proceedingJoinPoint )
6136 {
6237 $ className = $ proceedingJoinPoint ->className ;
You can’t perform that action at this time.
0 commit comments