public function callback()
    {
        $generator = $this->getGenerator();
        try {
            $this->io->write('<info>Generating OXID eShop unified namespace classes ... </info>', false);
            $generator->cleanupOutputDirectory();
            $generator->generate();
            $this->io->write('<info>Done</info>');
        } catch (\Exception $exception) {
            $this->io->writeError('<error>Failed</error>');
            $this->io->writeError('<error>Error: ' . $exception->getMessage() . '</error>');
            $this->io->writeError('<error>Code: ' . $exception->getCode() . '</error>');
            $this->io->writeError('<error>Stacktrace: ' . PHP_EOL . $exception->getTraceAsString() . '</error>');
        }
    }
public function callback()
    {
        $generator = $this->getGenerator();
        try {
            $this->io->write('<info>Generating OXID eShop unified namespace classes ... </info>', false);
            $generator->cleanupOutputDirectory();
            $generator->generate();
            $this->io->write('<info>Done</info>');
        } catch (\Exception $exception) {
            $this->io->writeError('<error>Failed</error>');
            $this->io->writeError('<error>Error: ' . $exception->getMessage() . '</error>');
            $this->io->writeError('<error>Code: ' . $exception->getCode() . '</error>');
            $this->io->writeError('<error>Stacktrace: ' . PHP_EOL . $exception->getTraceAsString() . '</error>');
        }
    }
public function callback ( ) { $ generator = $ this -> getGenerator ( ) ; try { $ this -> io -> write ( '<info>Generating OXID eShop unified namespace classes ... </info>' , false ) ; $ generator -> cleanupOutputDirectory ( ) ; $ generator -> generate ( ) ; $ this -> io -> write ( '<info>Done</info>' ) ; } catch ( \ Exception $ exception ) { $ this -> io -> writeError ( '<error>Failed</error>' ) ; $ this -> io -> writeError ( '<error>Error: ' . $ exception -> getMessage ( ) . '</error>' ) ; $ this -> io -> writeError ( '<error>Code: ' . $ exception -> getCode ( ) . '</error>' ) ; $ this -> io -> writeError ( '<error>Stacktrace: ' . PHP_EOL . $ exception -> getTraceAsString ( ) . '</error>' ) ; } }
This callback is called, when the wished composer events are fired.
This callback is called when the wished composer events are fired .