Skip to content

Instantly share code, notes, and snippets.

@stormwild
Created October 1, 2012 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stormwild/3810231 to your computer and use it in GitHub Desktop.
Save stormwild/3810231 to your computer and use it in GitHub Desktop.
<?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