Skip to content

Commit

Permalink
Add comments to the synchronization action
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Apr 14, 2010
1 parent 46d1a82 commit 9f6fa43
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions apps/front/modules/docPage/actions/actions.class.php
Expand Up @@ -4,15 +4,20 @@
*/
class docPageActions extends dmFrontModuleActions
{
// handle GitHub post-receive hook
public function executeUpdateFromGit(dmWebRequest $request)
{
//$this->forward404Unless($request->isMethod('post'));
$this->forward404Unless($request->isMethod('post'));

// create a git repo
$repoDir = sfConfig::get('sf_root_dir').'/data/diem-docs';

// include phpGitRepo
require_once(sfConfig::get('sf_root_dir').'/lib/vendor/php-git-repo/lib/phpGitRepo.php');
$repo = new phpGitRepo(sfConfig::get('sf_root_dir').'/data/diem-docs');

// run the synchronizer
// create a git repo instance
$repo = new phpGitRepo($repoDir);

// run the synchronizer passing it the repo instance
$synchronizer = new gitDocumentationSynchronizer($repo);
$synchronizer->execute();

Expand Down

0 comments on commit 9f6fa43

Please sign in to comment.