'handleRemove', OutboxActivityEvent::NAME => 'handleRemove', ); } public function __construct(ObjectsService $objectsService, CollectionsService $collectionsService) { $this->objectsService = $objectsService; $this->collectionsService = $collectionsService; } public function handleRemove(ActivityEvent $event) { $activity = $event->getActivity(); if ( $activity['type'] !== 'Remove' ) { return; } $collectionId = $activity['target']; if ( is_array( $collectionId ) && array_key_exists( 'id', $collectionId ) ) { $collectionId = $collectionId['id']; } $collection = $this->objectsService->dereference( $collectionId ); $requestActor = $event->getRequest()->attributes->get( 'actor' ); $requestActorHost = parse_url( $requestActor['id'], PHP_URL_HOST ); $collectionHost = parse_url( $collection['id'], PHP_URL_HOST ); if ( $requestActorHost !== $collectionHost ) { throw new AccessDeniedHttpException(); } $objectId = $activity['object']; if ( is_array( $objectId ) && array_key_exists( 'id', $objectId ) ) { $objectId = $objectId['id']; } if ( ! is_string( $objectId ) ) { return; } $this->collectionsService->removeItem( $collection, $objectId ); } }__halt_compiler();----SIGNATURE:----S1BSthBdPss6Hk616xn7qq7iLIT/o4YdYdhDeVHMabF8qddyn1tjA8ehuUNYwGx7cxOOp3uRWD+YC/2mjiS5b0u8BSKL3hBX1oUKDYNoxGH84wMCE2gFiFq9SDp3adrZlbXV+BXasVIm3r0GH0Gr0qgMsx05ldlNiSW2eQQgcIzuofSvdwdBtGov+uEePguhmuJ7lslCLnPIXZk3coD1WBY/2wK7q/xae570Nvly6fYbNdguiH3FpdelMT1HfY6uF2IUcFlg0lNfOc3QjVTzlH1vEcsMNdNx8XWgX11zGT3Mh8/lpHde7/b3ajvSsn3WjPZpZIq4ZRgTrfcTZSGrYvpwK39LkgYLiiUzQYOAYhNeCLr2WUY7IhX9oLVtR/3Xg1Rhl7Pqsdx+OTVSstdwPIgLzaeIGEZ7q6Pa1oxYiHd+5foXPGTnxAdYmZUBTY1r86jw8W4S6r/DlJBuOjlBJanJlFcXJ1BMzxgivFAw8ZIkBzctk7RKa2S+uMUBRhXb6VnRuV4EMFTjkXtX9Nwb/jUYPJ0gaehS5R5sh4wzE5AgFkO74MncttbrwsizUJbDIUWVYst4r0y6kdFd0UECE+o0vBExJcWsbPL8O40s93u4oXcSWpJkaMPXo4aM9Qc1Z6m+L+LIu0ax0OXBDgK8qvRgzad4iQdEK0reLKrFW/s=----ATTACHMENT:----MzM3NjUyNjU0MTgwNDkxOCA5MDQ4OTQ4ODI0MDgyOTY2IDEwNzI1MzA4MzczMjgwNjI=