Exemple #1
0
 /**
  * @internal param \Auryn\Injector $injector
  * @internal param $category
  * @return TextResponse
  */
 public function renderCategoryIndex()
 {
     $injectionParams = new InjectionParams();
     $injectionParams->defineParam('pageTitle', "Imagick demos");
     $injectionParams->alias('ImagickDemo\\Navigation\\Nav', 'ImagickDemo\\Navigation\\CategoryNav');
     return JigExecutable::create('categoryIndex', $injectionParams);
 }
Exemple #2
0
 public function renderTemplateExecutable()
 {
     return JigExecutable::create('pages/renderTemplateExecutable');
 }
Exemple #3
0
 public function createResponse()
 {
     return JigExecutable::create('admin/queueInfo');
 }
 function listRepoCommitsIterator(GithubService $api, AuthToken $oauth2Token)
 {
     $username = "******";
     $repo = "GithubArtaxService";
     $listRepoCommits = $api->listRepoCommits($oauth2Token, $username, $repo);
     $command = $api->listRepoCommits($oauth2Token, $username, $repo);
     $command->setAuthor('Danack');
     $commitsIterator = new \GithubService\Iterator\ListRepoCommitsIterator($api, $oauth2Token, $listRepoCommits);
     $context = new \GithubExample\Context\ListRepoCommitsByPage();
     $page = 1;
     foreach ($commitsIterator as $commits) {
         $context->addCommits($page, $commits);
         $page++;
     }
     return JigExecutable::createWithSharedObjects("pages/listRepoCommitsIterator", [$context]);
 }
Exemple #5
0
 public function createResponse()
 {
     return JigExecutable::create('admin/fpmStatus');
 }