コード例 #1
0
 protected function runFixture(Connection $connection, FixtureInterface $fixture)
 {
     if ($fixture instanceof AbstractFixture) {
         $fixture->setNeptune($this->neptune);
     }
     $msg = '';
     if ($fixture instanceof OrderedFixtureInterface) {
         $msg .= '(' . $fixture->getOrder() . ') ';
     }
     $msg .= 'Running ' . get_class($fixture);
     if ($this->logger) {
         $this->logger->notice($msg);
     }
     parent::runFixture($connection, $fixture);
 }
コード例 #2
0
 /**
  * Run a fixture. Override this method to add logging, etc.
  *
  * @param Connection       $connection
  * @param FixtureInterface $fixture
  */
 protected function runFixture(Connection $connection, FixtureInterface $fixture)
 {
     $fixture->load($connection);
 }