Ver Mensaje Individual
  #6 (permalink)  
Antiguo 31/07/2012, 17:52
IXtremeLT
 
Fecha de Ingreso: julio-2011
Ubicación: Zapopan, Jal. MX
Mensajes: 316
Antigüedad: 12 años, 10 meses
Puntos: 32
Respuesta: Problema con ZF2 Beta 5

Gracias, hice un pull, luego un self-update y update por si acaso pero sigue el problema. Estoy utilizando php 5.4.3.

Module/Album/Module.php

Código PHP:
Ver original
  1. <?php
  2.  
  3. namespace Album;
  4.  
  5. use Album\Model\AlbumTable;
  6. use Zend\ModuleManager\Feature\ServiceProviderInterface;
  7.  
  8. class Module
  9. {
  10.  
  11.     public function getAutoloaderConfig()
  12.     {
  13.         return array(
  14.             'Zend\Loader\ClassMapAutoloader' => array(
  15.                 __DIR__ . '/autoload_classmap.php',
  16.             ),
  17.             'Zend\Loader\StandardAutoloader'  => array(
  18.                 "namespaces" => array(
  19.                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
  20.                 ),
  21.             ),
  22.         );
  23.     }
  24.  
  25.     public function getConfig()
  26.     {
  27.         return include __DIR__ . '/config/module.config.php';
  28.     }
  29.  
  30.     public function getServiceConfiguration()
  31.     {
  32.         return array(
  33.             "factories" => array(
  34.                 "Album\Model\AlbumTable" => function( $sm )
  35.                 {
  36.                     $adapter = $sm->get( "Zend\Db\Adapter\Adapter" );
  37.                     $table = new AlbumTable( $adapter );
  38.                     return $table;
  39.                 },
  40.             ),
  41.         );
  42.     }
  43.  
  44. }

Gracias :)