Now I can't update zf2 using composer.
I didn't change anything in the composer.json. Yesterday the update worked.
Here is the output:

Updating dependencies (including require-dev)
  - Removing zendframework/zendframework (2.2.6)
  - Installing zendframework/zendframework (dev-develop e6ecdf9)
    Cloning e6ecdf95c7d7cd7e24f431c54bb52779a1ef9130
Failed to download zendframework/zendframework from source: The process
"git clone --no-checkout 'git://github.com/zendframework/zf2.git'
'/disk2/www/beyazpano/vendor/zendframework/zendframework' && cd
'/disk2/www/beyazpano/vendor/zendframework/zendframework' && git remote add
composer 'git://github.com/zendframework/zf2.git' && git fetch composer"
exceeded the timeout of 300 seconds.


This is my composer.json:
"require": {
        "php": ">=5.4",
        "aws/aws-sdk-php": "2.4.2",
        "zendframework/zendframework": "~2.3-dev",
        "ocramius/ocra-cached-view-resolver": "1.1.*@dev"
    }



On 12 March 2014 01:29, Matthew Weier O'Phinney <[email protected]> wrote:

> On Mar 11, 2014 4:08 PM, "Ralf Eggert" <[email protected]> wrote:
> > Matthew Weier O'Phinney schrieb am 11.03.2014 18:45:
> > > This is now addressed -- Norbert and Ralf -- can you each test again
> for me? :)
> >
> > I get this message:
> >
> >   Fatal error: Call to undefined method Zend\Mvc
> >   \I18n\Translator::factory() in /home/devhost/v3.travello.com/vendor
> >   /RalfEggert/travello-library/src/TravelloLib/Mvc/Router
> >   /TranslatorFactory.php on line 39
> >
> > for this code
> >
> >   use Zend\Mvc\I18n\Translator;
> >
> >   $translator = Translator::factory($config['router']['translator']);
> >
> > Zend\Mvc\I18n\Translator used to extend Zend\I18n\Translator\Translator
> > in 2.2.x and now it implements Zend\I18n\Translator\TranslatorInterface
> > and does not implement a factory method any more.
> >
> > I solved this issue like this:
> >
> >   use Zend\I18n\Translator\Translator as I18nTranslator;
> >   use Zend\Mvc\I18n\Translator as MvcTranslator;
> >
> >   $translator = new MvcTranslator(
> >     I18nTranslator::factory($config['router']['translator'])
> >   );
>
> That's a good point, and I'll make sure to point it out in the release
> notes. The MvcTranslator is generally only expected to be pulled from the
> ServiceManager, and rarely instantiated directly, which is why we made the
> change. However, that assumption is clearly not entirely true, so we'll
> need to call out the change in constructor for use cases like yours.
>

Reply via email to