Created
December 12, 2012 13:00
-
-
Save ThaDafinser/4267544 to your computer and use it in GitHub Desktop.
Zend Framework 2, Module Module.php ZF2,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace SomeModule; | |
// Load the appropiate interfaces. You can use every one inside of Zend\ModuleManager\Feature\...Interface | |
use Zend\ModuleManager\Feature\AutoloaderProviderInterface; | |
use Zend\ModuleManager\Feature\ConsoleBannerProviderInterface; | |
// we would have to use here all (but that's to long!) | |
class Module implements AutoloaderProviderInterface, ConsoleBannerProviderInterface | |
{ | |
/** | |
* Normal constructor -> Event "loadModule.resolve" | |
* @return void | |
*/ | |
public function __construct () | |
{ | |
} | |
/** | |
* Autoloading config -> Event "loadModule" | |
* @return array \Traversable | |
*/ | |
public function getAutoloaderConfig () | |
{ | |
} | |
/** | |
* Initialize the Module -> Event "loadModule" | |
* @param \Zend\ModuleManager\ModuleManager $moduleManager | |
* @return void | |
*/ | |
public function init (\Zend\ModuleManager\ModuleManager $moduleManager) | |
{ | |
} | |
/** | |
* General config -> Event "loadModule" | |
* @return array \Traversable | |
*/ | |
public function getConfig () | |
{ | |
} | |
/** | |
* Additional service config -> Event "loadModule" | |
* @return array \Traversable \Zend\ServiceManager\Config | |
*/ | |
public function getServiceConfig () | |
{ | |
} | |
/** | |
* Additional controller config -> Event "loadModule" | |
* @return array \Traversable \Zend\ServiceManager\Config | |
*/ | |
public function getControllerConfig () | |
{ | |
} | |
/** | |
* Additional controller plugin config -> Event "loadModule" | |
* @return array \Traversable \Zend\ServiceManager\Config | |
*/ | |
public function getControllerPluginConfig () | |
{ | |
} | |
/** | |
* Additional view helper config -> Event "loadModule" | |
* @return array \Zend\ServiceManager\Config | |
*/ | |
public function getViewHelperConfig () | |
{ | |
} | |
/** | |
* The console banner. | |
* Shown with no parameters, or invalid parameters | |
* @param \Zend\Console\Adapter\AdapterInterface $console | |
* @return string null | |
*/ | |
public function getConsoleBanner (\Zend\Console\Adapter\AdapterInterface $console) | |
{ | |
} | |
/** | |
* | |
* @param \Zend\Console\Adapter\AdapterInterface $console | |
* @return array string null | |
*/ | |
public function getConsoleUsage (\Zend\Console\Adapter\AdapterInterface $console) | |
{ | |
} | |
/** | |
* Bootstrap the module -> Event "bootstrap" | |
* @param \Zend\Mvc\MvcEvent $event | |
* @return void | |
*/ | |
public function onBootstrap (\Zend\Mvc\MvcEvent $event) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment