title: please help me Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for Zend\Db\Adapter\Adapter
body: <p>i'm following this tutorial but got error Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for Zend\Db\Adapter\Adapter</p>
  
  <p>i've googling and tried all solution but no luck. please helppppp i'm depressed :|</p>
  
  <p>FYI : i'm using this skeleton <a href="https://github.com/zendframework/ZendSkeletonApplication" rel="nofollow noreferrer">https://github.com/zendframework/ZendSkeletonApplication</a> and go. i didn't install zend.</p>
  
  <p>module.php
      namespace Album;</p>
  
  <pre><code>// Add these import statements:
  use Album\Model\Album;
  use Album\Model\AlbumTable;
  use Zend\Db\ResultSet\ResultSet;
  use Zend\Db\TableGateway\Tabl`enter code here`eGateway;
  
  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 getServiceConfig()
   {
       return array(
           'factories' =&gt; array(
               'Album\Model\AlbumTable' =&gt;  function($sm) {
                   $tableGateway = $sm-&gt;get('AlbumTableGateway');
                   $table = new AlbumTable($tableGateway);
                   return $table;
               },
               'AlbumTableGateway' =&gt; function ($sm) {
                   $dbAdapter = $sm-&gt;get('Zend\Db\Adapter\Adapter');
                   $resultSetPrototype = new ResultSet();
                   $resultSetPrototype-&gt;setArrayObjectPrototype(new Album());
                   return new TableGateway('album', $dbAdapter, null, $resultSetPrototype);
               },
           ),
       );
   }
  </code></pre>
  
  <p>}</p>
  
  <p>global.php</p>
  
  <pre><code>return array(
   'db' =&gt; array(
       'driver'         =&gt; 'Pdo',
       'dsn'            =&gt; 'mysql:dbname=aaa;host=aaa',
       'driver_options' =&gt; array(
           PDO::MYSQL_ATTR_INIT_COMMAND =&gt; 'SET NAMES \'UTF8\''
       ),
   ),
   'service_manager' =&gt; array(
       'factories' =&gt; array(
           'Zend\Db\Adapter\Adapter' =&gt; 'Zend\Db\Adapter\AdapterServiceFactory',
       ),
   ),
  </code></pre>
  
  <p>);</p>
  
  <p>i read &amp; tried these :
  <a href="https://stackoverflow.com/questions/18254146/zf2-get-was-unable-to-fetch-or-create-an-instance-for-getalbumtable">ZF2 - get was unable to fetch or create an instance for getAlbumTable</a></p>
  
  <p><a href="https://stackoverflow.com/questions/11688260/servicenotfoundexception-in-zendframework-2-example-from-rob-allen">ServiceNotFoundException in ZendFramework 2, example from Rob Allen</a></p>
  
  <p>always end up without clarity</p>