mauro-moreno/find-bundle

Symfony2 Bundle,用于基于PHP的查找命令。

v1.1.0 2016-02-04 01:34 UTC

This package is auto-updated.

Last update: 2024-08-29 00:49:03 UTC


README

Build Status Build Status Code Coverage Scrutinizer Code Quality

Symfony2 Bundle,用于基于PHP的查找命令。

安装

使用composer

composer require mauro-moreno/find-bundle

在app/AppKernel.php中注册Bundle

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new MauroMoreno\FindBundle\FindBundle(),
        );

        // ...
    }
}

用法

就像使用任何app/console命令一样简单。

app/console find:dir {pattern} {directory}
#ouput: file_1