2015-05-05 22:04:04 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use GitWrapper\GitWrapper;
|
2015-05-06 14:11:00 +02:00
|
|
|
use Gist\Service\GistService;
|
|
|
|
|
|
|
|
$app['gist_path'] = $app['root_path'].'/data/git';
|
2015-05-05 22:04:04 +02:00
|
|
|
|
|
|
|
$app['git'] = function ($app) {
|
2015-05-06 14:11:00 +02:00
|
|
|
$wrapper = new GitWrapper('/usr/bin/git');
|
|
|
|
return $wrapper->init($app['gist_path']);
|
|
|
|
};
|
|
|
|
|
|
|
|
$app['gist'] = function ($app) {
|
|
|
|
return new GistService($app['gist_path'], $app['git']);
|
2015-05-05 22:04:04 +02:00
|
|
|
};
|