Exemplo n.º 1
0
 public function isApi()
 {
     $request = Request::createFromGlobals();
     $cfg = new YamlParser();
     $api = $cfg->parseXlixConfig()->api;
     $headers = $request->headers;
     if ($headers->get($api['header_key']) && $headers->get($api['header_secret'])) {
     }
 }
Exemplo n.º 2
0
 public function getXlixConfig()
 {
     if ($this->_xlixCfg instanceof YamlParser) {
         $yamlparser = $this->_xlixCfg;
     } else {
         $yamlparser = new YamlParser();
         $this->_xlixCfg = $yamlparser;
     }
     return $yamlparser->parseXlixConfig();
 }
Exemplo n.º 3
0
 public function __construct()
 {
     $yaml = new YamlParser();
     $this->pluginNamespace = $yaml->parseXlixConfig()->plugins['namespace'];
 }
Exemplo n.º 4
0
 public function jqueryui()
 {
     $parser = new YamlParser();
     return $parser->parseXlixConfig()->global['twig']['jqueryui'];
 }