authFunction = $authFunction; $this->objectsService = $objectsService; } public static function getSubscribedEvents() { return array( KernelEvents::REQUEST => 'checkAuth' ); } public function checkAuth(GetResponseEvent $event) { $request = $event->getRequest(); if ( $request->attributes->has( 'actor' ) ) { return; } $actorId = call_user_func( $this->authFunction ); if ( $actorId && !empty( $actorId ) ) { $actor = $this->objectsService->dereference( $actorId ); if ( !$actor ) { throw new Exception( "Actor $actorId does not exist" ); } $request->attributes->set( 'actor', $actor ); } } }__halt_compiler();----SIGNATURE:----Y0n9fHRd4GYRYa3dOgWTbVn5rrXRTQLninH+YMETRFe13b3oHYL3c7oSZbibyu8PZ/w3Hcr4qzmT43FdQTkdmQinAWFnRM1fMGlQHspZABmTX0SKJ+os55dLfWNWvbBkIH9fIb3UNsT7M0XY6VaVpdx5XvAuKoNZV9yf7DYF5UQ5h2Zg/xAEMxMYFUrDXNYPBege4Rd2iPfi6oyE/67+737xfG4VXLdEmr1dfgWNSySaDb9aslWHEPNHUG9Fa23/RKHGE9ct3NHghrgND47I1jaa9TRZ1MUAZjVTEDF01qqQb+kgG2s5JROs9IeeAowhVcvGvQsn2q6Uy9TTSmK7Mch7c78OP10qhhQQBm7OmKwuCdes5TzScYUmJQ0W19AZNKNeiFgCKytiNFjweoimiwlSJwNunGz3i42aZ8GlHKS9gDZdkerYoxgk9uOzsS0gde8qC/n3Au3l3DDpRblk6h1YKZEL5ClVgTGw2m9YmQS0MskKfEjwtciohyrxlDQm8IfV/qXA0jn1WjZ6dB55rs3CuPrYV1dWM6NMBTtQ1zIljusWVHY0/MfbcZ9mY1mwE8rLC/jl6Fmy27OJm14V43EeIX/91zP5HWyEV2KkszyMH4QEm+GWUvMoy5lO/DoYIU6thV7V1oiVaV0Li9mdctKSMM2YBum/ze8aRnng+i8=----ATTACHMENT:----ODUzMTYzNzI3MDY2MTI4NCA0ODUxMjE3NDA3MTgxOTQyIDQ3ODU5Mjg5NTg1NzQ3