diff --git a/src/logger/cli.php b/src/logger/cli.php deleted file mode 100644 index 5a60e3a..0000000 --- a/src/logger/cli.php +++ /dev/null @@ -1,119 +0,0 @@ -stream = $output; - } - - /** - * Method called, when the executor run is started - * - * @param Executor $executor - * @return void - */ - public function startExecutor( Executor $executoar, JobProvider $jobProvider ) - { - if ( $jobProvider instanceof \Countable ) - { - $this->count = count( $jobProvider ); - } - } - - /** - * Method called, when all jobs are executed - * - * @return void - */ - public function finishedExecutor() - { - fprint( $this->stream, "\n" ); - } - - /** - * Method called, when all jobs are executed - * - * @return void - */ - public function progressJob( $nr ) - { - if ( $this->count ) - { - fwrite( $this->stream, sprintf( " \r% 4d / %d (% 2.2F%%) %s ", - $nr + 1, - $this->count, - ( $nr + 1 ) / $this->count * 100, - $this->processIndicators[$nr % count( $this->processIndicators )] - ) ); - } - else - { - fwrite( $this->stream, sprintf( " \r% 4d %s ", - $nr + 1, - $this->processIndicators[$nr % count( $this->processIndicators )] - ) ); - } - } -} -