context() public méthode

Returns the template context object.
public context ( ) : CampContext
Résultat CampContext object
 public function __construct(ThemesService $themesService)
 {
     $this->smarty = \CampTemplate::singleton();
     $this->smarty->assign('gimme', $this->smarty->context());
     $this->themesService = $themesService;
     $this->preconfigureSmarty();
 }
 public function __construct(ThemesService $themesService, PublicationService $publicationService)
 {
     $this->smarty = \CampTemplate::singleton();
     $this->smarty->assign('gimme', $this->smarty->context());
     $this->themesService = $themesService;
     $this->publicationService = $publicationService;
     $this->originalVector = $this->smarty->campsiteVector;
     $this->preconfigureSmarty();
 }