/**
  * Ignore local configs in git.
  *
  * @param string          $directory
  * @param OutputInterface $output
  * 
  * @return $this
  */
 protected function ignoreLocalConfigs($directory, $output)
 {
     File::appendOnce($directory . '/.gitignore', '/app/config/local');
     $output->writeln('/app/config/local added to .gitignore');
     return $this;
 }
 /**
  * Install ACL functionality.
  *
  * @param string          $directory
  * @param OutputInterface $output
  * 
  * @return $this
  */
 protected function installAcl($directory, $output)
 {
     if (!File::has($directory . '/composer.json', 'zendframework/zend-permissions-acl')) {
         $output->writeln('<info>Installing zendframework/zend-permissions-acl...</info>');
         exec('composer require zendframework/zend-permissions-acl:2.2.6', $out);
         echo implode("\n", $out) . "\n";
     }
     File::copyIfNone(dirname(__FILE__) . '/../stubs/app/classes/Acl.stub', $directory . '/app/classes/Acl.php');
     File::copyIfNone(dirname(__FILE__) . '/../stubs/app/config/acl.stub', $directory . '/app/config/acl.php');
     File::appendOnce($directory . '/app/start/global.php', File::get(dirname(__FILE__) . '/../stubs/app/start/global.acl.partial'));
     File::appendOnce($directory . '/app/filters.php', File::get(dirname(__FILE__) . '/../stubs/app/filters.acl.partial'));
     $output->writeln('acl installed');
     return $this;
 }