mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
19 lines
455 B
PHP
19 lines
455 B
PHP
<?php
|
|
|
|
use GitWrapper\GitWrapper;
|
|
use Gist\Service\GistService;
|
|
|
|
$app['gist_path'] = $app['root_path'].'/data/git';
|
|
|
|
$app['git_wrapper'] = function ($app) {
|
|
return new GitWrapper('/usr/bin/git');
|
|
};
|
|
|
|
$app['git_working_copy'] = function ($app) {
|
|
return $app['git_wrapper']->init($app['gist_path']);
|
|
};
|
|
|
|
$app['gist'] = function ($app) {
|
|
return new GistService($app['gist_path'], $app['git_wrapper'], $app['git_working_copy'], $app['geshi']);
|
|
};
|