@@ 233-242 (lines=10) @@ | ||
230 | * |
|
231 | * @return boolean |
|
232 | */ |
|
233 | protected function injectResultInjection(& $bucketData, $functionName) |
|
234 | { |
|
235 | $placeholderHook = Placeholders::AROUND_JOINPOINT . $functionName . Placeholders::PLACEHOLDER_CLOSE; |
|
236 | $bucketData = str_replace( |
|
237 | $placeholderHook, |
|
238 | $placeholderHook . ' |
|
239 | ' . ReservedKeywords::METHOD_INVOCATION_OBJECT . '->injectResult(' . ReservedKeywords::RESULT . ');', |
|
240 | $bucketData |
|
241 | ); |
|
242 | } |
|
243 | ||
244 | /** |
|
245 | * Will inject the injection of any thrown exception into our method invocation object as we need it for later use |
|
@@ 252-261 (lines=10) @@ | ||
249 | * |
|
250 | * @return boolean |
|
251 | */ |
|
252 | protected function injectExceptionInjection(& $bucketData, $functionName) |
|
253 | { |
|
254 | $placeholderHook = Placeholders::AFTERTHROWING_JOINPOINT . $functionName . Placeholders::PLACEHOLDER_CLOSE; |
|
255 | $bucketData = str_replace( |
|
256 | $placeholderHook, |
|
257 | ReservedKeywords::METHOD_INVOCATION_OBJECT . '->injectThrownException(' . ReservedKeywords::THROWN_EXCEPTION_OBJECT . '); |
|
258 | ' . $placeholderHook, |
|
259 | $bucketData |
|
260 | ); |
|
261 | } |
|
262 | ||
263 | /** |
|
264 | * Will look at all advices known to the aspect register and filter out pointcut expressions matching the |