src/Phinx/Migration/Manager.php
public function executeSeed($name, SeedInterface $seed)
    {
        $this->getOutput()->writeln('');
        $this->getOutput()->writeln(
            ' ==' .
            ' <info>' . $seed->getName() . ':</info>' .
            ' <comment>seeding</comment>'
        );

        // Execute the seeder and log the time elapsed.
        $start = microtime(true);
        $this->getEnvironment($name)->executeSeed($seed);
        $end = microtime(true);

        $this->getOutput()->writeln(
            ' ==' .
            ' <info>' . $seed->getName() . ':</info>' .
            ' <comment>seeded' .
            ' ' . sprintf('%.4fs', $end - $start) . '</comment>'
        );
    }
public function executeSeed($name, SeedInterface $seed)
    {
        $this->getOutput()->writeln('');
        $this->getOutput()->writeln(
            ' ==' .
            ' <info>' . $seed->getName() . ':</info>' .
            ' <comment>seeding</comment>'
        );

        // Execute the seeder and log the time elapsed.
        $start = microtime(true);
        $this->getEnvironment($name)->executeSeed($seed);
        $end = microtime(true);

        $this->getOutput()->writeln(
            ' ==' .
            ' <info>' . $seed->getName() . ':</info>' .
            ' <comment>seeded' .
            ' ' . sprintf('%.4fs', $end - $start) . '</comment>'
        );
    }
public function executeSeed ( $ name , SeedInterface $ seed ) { $ this -> getOutput ( ) -> writeln ( '' ) ; $ this -> getOutput ( ) -> writeln ( ' ==' . ' <info>' . $ seed -> getName ( ) . ':</info>' . ' <comment>seeding</comment>' ) ; // Execute the seeder and log the time elapsed. $ start = microtime ( true ) ; $ this -> getEnvironment ( $ name ) -> executeSeed ( $ seed ) ; $ end = microtime ( true ) ; $ this -> getOutput ( ) -> writeln ( ' ==' . ' <info>' . $ seed -> getName ( ) . ':</info>' . ' <comment>seeded' . ' ' . sprintf ( '%.4fs' , $ end - $ start ) . '</comment>' ) ; }
Execute a seeder against the specified environment.

@param string $name Environment Name
@param \Phinx\Seed\SeedInterface $seed Seed
@return void
Execute a seeder against the specified environment .