public function getKey(EventInterface $event) {
        $acl = $event->getAccessControl();

        $publicKey = $event->getRequest()->getRoute()->get('publickey');

        if (!$acl->publicKeyExists($publicKey)) {
            throw new RuntimeException('Public key not found', 404);
        }
    }
public function getKey(EventInterface $event) {
        $acl = $event->getAccessControl();

        $publicKey = $event->getRequest()->getRoute()->get('publickey');

        if (!$acl->publicKeyExists($publicKey)) {
            throw new RuntimeException('Public key not found', 404);
        }
    }
public function getKey ( EventInterface $ event ) { $ acl = $ event -> getAccessControl ( ) ; $ publicKey = $ event -> getRequest ( ) -> getRoute ( ) -> get ( 'publickey' ) ; if ( ! $ acl -> publicKeyExists ( $ publicKey ) ) { throw new RuntimeException ( 'Public key not found' , 404 ) ; } }
Get a public key, but return only status code, not private key information

@param EventInterface $event The current event
Get a public key but return only status code not private key information