Adds cross site api #4
12
Module.php
12
Module.php
|
@ -138,4 +138,16 @@ class Module extends AbstractModule
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code to run when first using the module.
|
||||||
|
*
|
||||||
|
* @param MvcEvent $event
|
||||||
|
*/
|
||||||
|
public function onBootstrap(MvcEvent $event): void
|
||||||
|
{
|
||||||
|
parent::onBootstrap($event);
|
||||||
|
|
||||||
|
$acl = $this->getServiceLocator()->get('Omeka\Acl');
|
||||||
|
$acl->allow(null, 'Controller\ArchiveSiteMetaController');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ return [
|
||||||
],
|
],
|
||||||
'controllers' => [
|
'controllers' => [
|
||||||
'invokables' => [
|
'invokables' => [
|
||||||
Controller\ArchiveSiteMetaController::class => Controller\ArchiveSiteMetaController::class,
|
'Controller\ArchiveSiteMetaController' => Controller\ArchiveSiteMetaController::class
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'view_manager' => [
|
'view_manager' => [
|
||||||
|
|
Loading…
Reference in New Issue