public/fast_events.php line 12

Open in your IDE?
  1. <?php
  2. //$fastEvents=array('monitor','add_inout','add_group','add_queue','add_device','add_segment');
  3. $fastEventsexplode(PHP_EOL,file_get_contents('fast_events.conf'));
  4. $class=isset($_GET['class']) ?$_GET['class']:(isset($_POST['class'])?$_POST['class']:null);
  5. if (array_search($class$fastEvents)!==false) {
  6.     require_once(__DIR__.'/../src/FastEvents/FastEvents.php');
  7.     $dispatcher=new App\FastEvents\FastEvents();
  8.     $dispatcher->dispatch($class);
  9. } else {
  10.     //Desviem tots els altres class a symfony
  11.     $_SERVER['SCRIPT_FILENAME']= str_replace('fast_events.php''index.php'$_SERVER['SCRIPT_FILENAME']);
  12.     require_once('index.php');
  13. }