private function createConfiguration()
 {
     $this->output->write('    Updating   :  ');
     $envs = ['TOOLCHAIN' => $toolChainName = $this->env->get('_toolchainName'), 'ROOTFS' => $rootfs = $this->baseDir . '/rootfs', 'SYSROOT_PATH' => dirname($this->env->get('_packageDir')) . '/sysroots/arm/sysroot/usr', 'CC' => $toolChainName . '-gcc', 'CXX' => $toolChainName . '-g++', 'RANLIB' => $toolChainName . '-ranlib', 'STRIP' => $toolChainName . '-strip', 'LD' => $toolChainName . '-ld', 'AR' => $toolChainName . '-ar', 'CPPFLAGS' => sprintf('-I%s/include -I%s/usr/include ', $rootfs, $rootfs), 'CFLAGS' => '-O2 ', 'LDFLAGS' => sprintf('-L%s/lib -L%s/usr/lib ', $rootfs, $rootfs), 'CXXFLAGS' => sprintf('-O2 -I%s/include ', $rootfs), 'PATH' => $_SERVER['PATH'] . ':' . $this->env->get('_toolchainDir'), 'ac_cv_func_malloc_0_nonnull' => 'yes', 'ac_cv_func_realloc_0_nonnull' => 'yes'];
     $dumper = new Dumper();
     $yaml = $dumper->dump($envs, 1);
     $this->fs->dumpFile($this->baseDir . '/environment.yml', $yaml);
     $this->output->writeln("\n");
 }
 private function optimizeBinaries()
 {
     $this->output->write(" Preparing to  Optimize...\n");
     $binaries = [$this->baseDir . '/rootfs/php/bin/php-cgi', $this->baseDir . '/rootfs/msmtp/bin/msmtp', $this->baseDir . '/rootfs/lighttpd/sbin/lighttpd', $this->baseDir . '/rootfs/nginx/sbin/nginx'];
     foreach ($binaries as $bin) {
         $this->output->write(sprintf('    Optimizing %s  :  ', basename($bin)));
         $command = $this->env->get('TOOLCHAIN') . '-strip ' . $bin;
         $process = new Process($command, null, $this->env->toArray());
         $process->setTimeout(0);
         $process->run();
         echo $process->getErrorOutput();
         $this->showResponse($process->isSuccessful());
     }
     $this->output->write("\n");
 }