Example #1
0
 /**
  * Initializes the new event.
  *
  * @param SqonInterface $sqon      The Sqon manager.
  * @param string        $dir       The path to the directory to extract to.
  * @param string[]      $paths     The paths in the Sqon to extract.
  * @param boolean       $overwrite The flag to overwrite paths.
  */
 public function __construct(SqonInterface $sqon, $dir, array $paths, $overwrite)
 {
     parent::__construct($sqon);
     $this->dir = $dir;
     $this->overwrite = $overwrite;
     $this->paths = $paths;
 }
Example #2
0
 /**
  * Initializes the new event.
  *
  * @param SqonInterface $sqon   The Sqon manager.
  * @param string        $script The PHP bootstrap script.
  */
 public function __construct(SqonInterface $sqon, $script)
 {
     parent::__construct($sqon);
     $this->script = $script;
 }
Example #3
0
 /**
  * Initializes the new event.
  *
  * @param SqonInterface $sqon    The Sqon manager.
  * @param string        $path    The path to the file or directory.
  * @param PathInterface $manager The manager for the file or directory.
  */
 public function __construct(SqonInterface $sqon, $path, PathInterface $manager)
 {
     parent::__construct($sqon);
     $this->manager = $manager;
     $this->path = $path;
 }
 /**
  * Initializes the new event.
  *
  * @param SqonInterface $sqon     The Sqon manager.
  * @param Iterator      $iterator The path iterator.
  */
 public function __construct(SqonInterface $sqon, Iterator $iterator)
 {
     parent::__construct($sqon);
     $this->iterator = $iterator;
 }
Example #5
0
 /**
  * Verify that the Sqon manager can be retrieved.
  */
 public function testRetrieveTheSqonManager()
 {
     self::assertSame($this->sqon, $this->event->getSqon(), 'The Sqon manager was not returned.');
 }