Reputation:
I'm trying to install doctrine 2.0 with composer.
that's the tutorial i'm doing right now. I have problems to run this : " php composer.phar update
i get errors :
My config/Application.config.php:
<?php
// config/application.config.php:
return array(
'modules' => array(
'Application',
'DoctrineModule',
'DoctrineORMModule',
'Album',
),
'module_listener_options' => array(
'config_glob_paths' => array(
'config/autoload/{,*.}{global,local}.php',
),
'module_paths' => array(
'./module',
'./vendor',
),
),
);
Composer.json
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"homepage": "http://framework.zend.com/",
"minimum-stability": "dev",
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "2.*",
"doctrine/doctrine-orm-module": "dev-master"
}
}
thanks for your help
Upvotes: 1
Views: 3112
Reputation: 38004
Alternatively, you can call composer install
and composer update
with the --prefer-dist
flag. This will force composer to download the requirements as packages (usually a tarball or zip downloaded via HTTP) instead of cloning them using Git.
Upvotes: 0
Reputation: 8583
As you can see from your screenshot you have not git installed or it is not in your path. Install git for windows and/or make sure you put the bin-directory of your installation in your path. Then try running composer.phar again.
Upvotes: 2