gist/app/bootstrap.php.d/50-git.php
2015-05-06 14:11:00 +02:00

16 lines
342 B
PHP

<?php
use GitWrapper\GitWrapper;
use Gist\Service\GistService;
$app['gist_path'] = $app['root_path'].'/data/git';
$app['git'] = function ($app) {
$wrapper = new GitWrapper('/usr/bin/git');
return $wrapper->init($app['gist_path']);
};
$app['gist'] = function ($app) {
return new GistService($app['gist_path'], $app['git']);
};