An error occurred while loading the file. Please try again.
-
Demian Katz authoredce5bdabc
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Module.php 2.27 KiB
<?php
/**
* ZF2 module definition for the VuFind application
*
* PHP version 5
*
* Copyright (C) Villanova University 2010.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @category VuFind2
* @package Module
* @author Demian Katz <demian.katz@villanova.edu>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link http://vufind.org
*/
namespace VuFind;
use Zend\Mvc\MvcEvent;
/**
* ZF2 module definition for the VuFind application
*
* @category VuFind2
* @package Module
* @author Demian Katz <demian.katz@villanova.edu>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link http://vufind.org
*/
class Module
{
/**
* Get module configuration
*
* @return array
*/
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
/**
* Get autoloader configuration
*
* @return array
*/
public function getAutoloaderConfig()
{
return array(
'Zend\Loader\ClassMapAutoloader' => array(
'classes' => array(
'minSO' => __DIR__ . '/src/VuFind/Search/minSO.php'
)
),
'Zend\Loader\StandardAutoloader' => array(
'namespaces' => array(
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
),
),
);
}
/**
* Bootstrap the module
*
* @param MvcEvent $e Event
*
* @return void
*/
public function onBootstrap(MvcEvent $e)
{
$bootstrapper = new Bootstrapper($e);
$bootstrapper->bootstrap();
}
}