Ejemplo n.º 1
0
 /**
  * @internal param \Auryn\Injector $injector
  * @return TextResponse
  */
 public function renderTitlePage(TierJig $tierJig)
 {
     $injectionParams = new InjectionParams();
     //$injectionParams->defineParam('pageTitle', "Imagick demos");
     $injectionParams->alias('ImagickDemo\\Navigation\\Nav', 'ImagickDemo\\Navigation\\NullNav');
     return $tierJig->createJigExecutable('title', $injectionParams);
 }
Ejemplo n.º 2
0
 public function notepad(TierJig $tierJig, VariableMap $variableMap, Session $session)
 {
     $data = $session->getData();
     $value = $variableMap->getVariable('data', false);
     if ($value !== false && strlen(trim($value)) != 0) {
         $data[] = $value;
         $session->setData($data);
     }
     $value = $variableMap->getVariable('submit', false);
     if ($value !== false && strcmp($value, "Clear") === 0) {
         $session->setData([]);
     }
     $session->save();
     return $tierJig->createJigExecutable('pages/notepad');
 }
Ejemplo n.º 3
0
 public function introduction(TierJig $tierJig)
 {
     return $tierJig->createJigExecutable('pages/index');
 }