Example #1
0
 /**
  * @param string $template
  * @param string $content
  */
 public function process($template, $content)
 {
     $overrides = $this->registry->get($template);
     if (0 === count($overrides)) {
         return;
     }
     $template = $this->crawlerFactory->createCrawler($content);
     foreach ($overrides as $override) {
         $this->apply($override, $template);
     }
     return $template->toHtml();
 }
Example #2
0
 public function __construct($max_attempts, RegistryInterface $registry)
 {
     $this->db_login_obj = $registry->get("db_login");
     $this->number_of_attempts = 0;
     $this->output_data = array();
     $this->input_data = array();
     $this->max_attempts = $max_attempts["max_attempts"];
 }
 public function __construct(RegistryInterface $registry)
 {
     $this->db_video_obj = $registry->get(Definitions::DB_VIDEOS);
     $this->search_result = [];
 }
 public function __construct(RegistryInterface $registry)
 {
     $this->db_questions_obj = $registry->get('db_questions');
     $this->input_data = [];
 }
 public function __construct(RegistryInterface $registry)
 {
     $this->db_confirm_obj = $registry->get("db_signup_confirm");
 }
Example #6
0
 public function __construct(RegistryInterface $registry)
 {
     $this->db_signup_obj = $registry->get("db_signup");
     $this->input_data = [];
 }