<?php

namespace App\Factory\Db\Adapter;

use Interop\Container\ContainerInterface;
use Zend\Db\Adapter\Adapter;

class Adapter
{
    public function __invoke(ContainerInterface $container)
    {
        $config = $container->get('config');
        return new Adapter($config['db']);
    }
}

<?php

namespace App\Factory\Db\Adapter;

use Interop\Container\ContainerInterface;
use Zend\Db\Adapter\Adapter as ZendAdapter;

class Adapter
{
    public function __invoke(ContainerInterface $container)
    {
        $config = $container->get('config');
        return new ZendAdapter($config['db']);
    }
}

Fix de erro no PHP 5
Fix de erro no PHP 5
