public function getControllerPluginConfig()
    {
        return [
            'factories' => [
                'resource' => function(\Zend\Mvc\Controller\PluginManager $sm) {
                        $event = new ResourceEvent();
                        $event->setIdentity($sm->getServiceLocator()->get('api-identity'));
                        $sm->get('');
                    }
            ]
        ];
    }