Created
October 1, 2012 08:06
-
-
Save stormwild/3810231 to your computer and use it in GitHub Desktop.
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 Album; | |
use Album\Model\AlbumTable; | |
class Module | |
{ | |
public function getAutoloaderConfig() | |
{ | |
return array ( | |
'Zend\Loader\ClassMapAutoloader' => array ( | |
__DIR__ . '/autoloader_classmap.php', | |
), | |
'Zend\Loader\StandardAutoloader' => array( | |
'namespace' => array( | |
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, | |
), | |
), | |
); | |
} | |
public function getConfig() | |
{ | |
return include __DIR__ . '/config/module.config.php'; | |
} | |
public function getServiceConfig() | |
{ | |
return array( | |
'factories' => array( | |
'Album\Model\AlbumTable' => function($sm) { | |
$dbAdapter = $sm->get('Zend\Db\Adapter\Adapter'); | |
$table = new AlbumTable($dbAdapter); | |
return $table; | |
} | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment