/**
  * @param BundleInformation $bundleInformation
  */
 public function __construct(BundleInformation $bundleInformation)
 {
     parent::__construct();
     $this->bundleInformation = $bundleInformation;
     $this->addFunction('get_info_object', [$this, 'getBundleObject']);
     $this->addFunction('get_info_bundle', [$this, 'getBundleName']);
     $this->addFunction('get_info_controller', [$this, 'getControllerName']);
     $this->addFunction('get_info_action', [$this, 'getActionName']);
 }
 /**
  * @param SwimRenderingManagerInterface $manager
  */
 public function __construct(SwimRenderingManagerInterface $manager)
 {
     parent::__construct();
     $this->manager = $manager;
     $this->enableOptionHtmlSafe();
     $this->addFunction('swim', [$this, 'swimGeneral']);
     $this->addFilter('swim', [$this, 'swimGeneral']);
     $this->addFilter('swimgeneral', [$this, 'swimGeneral']);
     $this->addFilter('swimlearning', [$this, 'swimLearning']);
     $this->addFilter('swimblog', [$this, 'swimBlog']);
     $this->addFilter('swimbook', [$this, 'swimBook']);
     $this->addFilter('swimdocs', [$this, 'swimDocs']);
 }
 /**
  * Initialize class instance and setup extension.
  *
  * @param Router $router
  */
 public function __construct(Router $router)
 {
     parent::__construct();
     $this->router = $router;
     $this->enableOptionHtmlSafe()->enableOptionNeedsEnv();
     $this->addFunction('bs_btn', [$this, 'getBootstrapButton']);
     $this->addFunction('bs_btn_default', [$this, 'getButtonDefault']);
     $this->addFunction('bs_btn_delete', [$this, 'getButtonDelete']);
     $this->addFunction('bs_btn_ajax_delete', [$this, 'getButtonAjaxDelete']);
     $this->addFunction('bs_btn_delete_in_hr', [$this, 'getButtonDeleteInHeader']);
     $this->addFunction('bs_btn_in_hr', [$this, 'getButtonInHeader']);
     $this->addFunction('bs_btn_cancel', [$this, 'getButtonAjaxDelete']);
     $this->addFunction('bs_btn_prev', [$this, 'getButtonPrevious']);
     $this->addFunction('bs_btn_next', [$this, 'getButtonNext']);
 }
Ejemplo n.º 4
0
 /**
  * Initialize the instance.
  */
 public function __construct(HttpUtils $httpUtils)
 {
     parent::__construct();
     $this->httpUtils = $httpUtils;
     $this->enableOptionHtmlSafe()->enableOptionNeedsEnv();
     $this->addFunction('form_scribe_submit', [$this, 'formSubmit']);
     $this->addFunction('form_scribe_submit_no_wrap', [$this, 'formSubmitNoWrap']);
     $this->addFunction('form_scribe_label', [$this, 'formLabel']);
     $this->addFunction('form_scribe_widget', [$this, 'formWidget']);
     $this->addFunction('form_scribe_item_no_label', [$this, 'formItemNoLabel']);
     $this->addFunction('form_scribe_item_no_label_or_group', [$this, 'formItemNoLabelOrGroup']);
     $this->addFunction('form_scribe_item', [$this, 'formItem']);
     $this->addFunction('form_scribe_item_horizontal', [$this, 'formItemHorizontal']);
     $this->addFunction('form_scribe_start', [$this, 'formStart']);
     $this->addFunction('form_scribe_start_horizontal', [$this, 'formStartHorizontal']);
     $this->addFunction('form_scribe_end', [$this, 'formEnd']);
     $this->addFunction('form_make_submit', [$this, 'formSubmitOld']);
     $this->addFunction('form_scribe_error', [$this, 'formError']);
 }
 /**
  * @param GoogleWebFontsInterface $webFonts
  */
 public function __construct(GoogleWebFontsInterface $webFonts)
 {
     parent::__construct();
     $this->generator = $webFonts;
     $this->enableOptionHtmlSafe()->addFunction('add_font', [$this, 'addFont'])->addFunction('get_font_link', [$this, 'getFontStylesheetLink']);
 }
Ejemplo n.º 6
0
 /**
  * @param ContainerInterface $container
  */
 public function __construct(ContainerInterface $container)
 {
     parent::__construct();
     $this->setContainer($container);
     $this->enableOptionHtmlSafe()->addFunction('param', [$this, 'getParameter']);
 }
 /**
  * Initialize the instance.
  *
  * @param AuthenticationUtils $authenticationUtils
  */
 public function __construct(AuthenticationUtils $authenticationUtils)
 {
     parent::__construct();
     $this->authenticationUtils = $authenticationUtils;
     $this->enableOptionHtmlSafe()->addFunction('get_last_username', [$this, 'getLastUsername']);
 }
 /**
  * @param ManagerInterface $manager
  */
 public function __construct(ManagerInterface $manager)
 {
     parent::__construct();
     $this->setManager($manager)->enableOptionHtmlSafe()->enableOptionNeedsEnv();
 }
 /**
  * {@inheritdoc}
  */
 public function __construct()
 {
     parent::__construct();
     $this->enableOptionHtmlSafe()->attachExtensionFuncs();
 }