Skip to content
This repository was archived by the owner on Apr 12, 2020. It is now read-only.
/ browser Public archive

Commit bf4067a

Browse files
committed
Fixed README
1 parent fe46f33 commit bf4067a

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.rst

+13-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ First way to configure is to give an exhaustive list of repositories you want:
3030
3131
<?php # prod.php
3232
33+
use Gitonomy\Browser\Git\Repository;
34+
3335
$app['repositories'] = array(
34-
'foobar' => new Gitonomy\Git\Repository('/var/www/foobar'),
35-
'barbaz' => new Gitonomy\Git\Repository('/var/www/barbaz'),
36+
'foobar' => new Repository('/var/www/foobar'),
37+
'barbaz' => new Repository('/var/www/barbaz'),
3638
);
3739
3840
The second way is to use recursive function to detect repositories. It's very
@@ -42,8 +44,16 @@ useful if you have multi-level folders:
4244
4345
<?php # prod.php
4446
45-
$app['repositories'] = ';
47+
$app['repositories'] = '/var/www';
48+
49+
The third way is to use a wildcard to detect repositories. It's very useful
50+
if you have every repository at the same level
51+
52+
.. code-block:: php
53+
54+
<?php # prod.php
4655
56+
$app['repositories'] = '/var/www/repo-*';
4757
4858
When you have filled it, launch `composer`_ to fetch dependencies and make
4959
project workable:

0 commit comments

Comments
 (0)