本文整理汇总了PHP中Symfony\Component\Finder\Finder::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Finder::__construct方法的具体用法?PHP Finder::__construct怎么用?PHP Finder::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Symfony\Component\Finder\Finder
的用法示例。
在下文中一共展示了Finder::__construct方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
*
* @access public
*/
public function __construct($path = null)
{
if ($path) {
$this->setPath($path);
parent::__construct($path);
}
}
示例2: __construct
/**
* @param ParserInterface $parser
* @param VerboseProgressOutput $progressOutput
*/
public function __construct(ParserInterface $parser, VerboseProgressOutput $progressOutput)
{
parent::__construct();
$this->parser = $parser;
$this->files()->name('*.php');
$this->progressOutput = $progressOutput;
}
示例3: __construct
public function __construct()
{
parent::__construct();
$files = $this->getFilesToExclude();
$this->files()->name('*.php')->name('*.twig')->name('*.xml')->name('*.yml')->ignoreDotFiles(true)->ignoreVCS(true)->exclude('vendor')->filter(function (\SplFileInfo $file) use($files) {
return !in_array($file->getRelativePathname(), $files, true);
});
}
示例4: __construct
public function __construct()
{
parent::__construct();
foreach ($this->getNames() as $name) {
$this->name($name);
}
$this->files()->ignoreDotFiles(true)->ignoreVCS(true);
}
示例5: __construct
/**
* Constructor
*/
public function __construct()
{
parent::__construct();
$finder = $this;
$finder->setReader(new AnnotationReader())->files()->name('*.php')->filter(function (\SplFileInfo $file) use($finder) {
try {
$fileInspector = new FileInspector($file->getPathname());
$classInspector = $fileInspector->getClassInspector($finder->getReader());
foreach ($finder->getContainsAtLeastOneOf() as $annotation) {
if ($classInspector->containsClassAnnotation($annotation) || $classInspector->containsMethodAnnotation($annotation) || $classInspector->containsPropertyAnnotation($annotation)) {
return true;
}
}
} catch (AnnotationScannerException $ex) {
return false;
}
return false;
});
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->files()->name('*.php');
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->files()->name('*.php')->name('*.twig')->ignoreDotFiles(true)->ignoreVCS(true)->exclude('vendor');
}
示例8: __construct
/**
* Constructor
*/
public function __construct()
{
parent::__construct();
$this->removeAdapters()->addAdapter(new MagentoPhpAdapter(), -50)->setAdapter('magento-php');
}
示例9: __construct
/**
* @param ConsoleOutput $console
*/
public function __construct(ConsoleOutput $console)
{
$this->console = $console;
parent::__construct();
}
示例10: __construct
public function __construct()
{
parent::__construct();
}