Ejemplo n.º 1
0
 /**
  * Save a profiling run.
  *
  * @param Domain\Model\ProfilingRun $run
  * @throws \Exception
  * @return void
  */
 public function save(Domain\Model\ProfilingRun $run)
 {
     $configuration = $this->configurationProvider->__invoke();
     if (!isset($configuration['plumber']['profilePath'])) {
         throw new \Exception('Profiling path not set');
     }
     $run->save($configuration);
 }