title: How do I get the Service Manager in Zend Framework 2 beta4 to create an instance for album-table?
body: <p>This is the Rob Allen's Quick start Tutorial for Zend Framework beta4. </p>
  
  <p>Error Message:Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for album-table</p>
  
  <p>It seems like it fails trying to make a connection to the db, but I have not found way to tell.  It's uses a closure to return an instance from the ServiceManager, but gets the above error message.</p>
  
  <p>module/Album/Module.php </p>
  
  <p>namespace Album;</p>
  
  <pre><code>class Module
  {
  public function getAutoloaderConfig()
  {
      return array(
              'Zend\Loader\ClassMapAutoloader' =&gt; array(
                      __DIR__ . '/autoload_classmap.php',
              ),
              'Zend\Loader\StandardAutoloader' =&gt; array(
                      'namespaces' =&gt; array(
                              __NAMESPACE__ =&gt; __DIR__ . '/src/' . __NAMESPACE__,
                      ),
              ),
      );
  }
  public function getConfig()
  {
      return include __DIR__ . '/config/module.config.php';
  }
  
  public function getServiceConfiguration()
  {
  
      $albumTable = array(
              'factories' =&gt; array(
                      'album-table' =&gt; function($sm) {
                          $dbAdapter = $sm-&gt;get('db-adapter');
                          $table = new AlbumTable($dbAdapter);
                          return $table;
                      },
              ),
      );      
      return $albumTable;
  }
  }
  </code></pre>
  
  <p>namespace Application;</p>
  
  <p>use Zend\Db\Adapter\Adapter as DbAdapter,</p>
  
  <pre><code>class Module
  {
      public function getConfig()
      {
          return include __DIR__ . '/config/module.config.php';
      }
      public function getServiceConfiguration()
      {
              $factoryDBAdaptor = array(
                'factories' =&gt; array(
                   'db-adapter' =&gt; function($sm) {
                      $config = $sm-&gt;get('config');
                      $config = $config['db'];
                      $dbAdapter = new DbAdapter($config);
                      return $dbAdapter;
                   }, 
                ), 
             );
          return $factoryDBAdaptor;
      }    
  }
  </code></pre>
  
  <p>config\autoload\global.php</p>
  
  <pre><code>return array(
      'db' =&gt; array(
          'driver' =&gt; 'PDO',
          'dsn'            =&gt; 'mysql:dbname=zf2tutorial;hostname=localhost',
          'username'       =&gt; 'user',
          'password'       =&gt; 'password',
          'driver_options' =&gt; array(
              PDO::MYSQL_ATTR_INIT_COMMAND =&gt; 'SET NAMES \'UTF8\''
          ),
      ),
  );
  </code></pre>