コード例 #1
0
    /**
     * {@inheritdoc}
     */
    protected function buildFindCommand(Command $command, $dir)
    {
        parent::buildFindCommand($command, $dir)->addAtIndex('-E', 1);

        return $command;
    }
コード例 #2
0
ファイル: BsdFindAdapter.php プロジェクト: netvlies/symfony
 /**
  * {@inheritdoc}
  */
 public function isSupported()
 {
     return in_array($this->shell->getType(), array(Shell::TYPE_BSD, Shell::TYPE_DARWIN)) && parent::isSupported();
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 protected function buildFindCommand(Command $command, $dir)
 {
     return parent::buildFindCommand($command, $dir)->add('-regextype posix-extended');
 }
コード例 #4
0
ファイル: BsdFindAdapter.php プロジェクト: nicam/symfony
 /**
  * {@inheritdoc}
  */
 protected function canBeUsed()
 {
     return in_array($this->shell->getType(), array(Shell::TYPE_BSD, Shell::TYPE_DARWIN)) && parent::canBeUsed();
 }