-
Notifications
You must be signed in to change notification settings - Fork 43
/
vendors.win.php
38 lines (30 loc) · 976 Bytes
/
vendors.win.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/*
* This file is largely inspired by the one written for the Symfony framework.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Get all dependencies needed for Phraseanet (Windows Version)
*
* Set the variables gitDir and phpDir with a trailing slash if it is not set in Windows' %PATH%
* For example :
* $phpDir="c:/php5310/"
*/
call_user_func(function()
{
$phpDir = "";
chdir(__DIR__);
set_time_limit(0);
$composer = __DIR__ . '/composer.phar';
if ( ! file_exists($composer))
{
file_put_contents($composer, file_get_contents('http://getcomposer.org/installer'), LOCK_EX);
system($phpDir . 'php ' . $composer . ' install');
}
system($phpDir . 'php ' . $composer . ' self-update');
system($phpDir . 'php ' . $composer . ' update');
});