Mercurial > hg > isophonics-drupal-site
view vendor/consolidation/annotated-command/src/Parser/Internal/CommandDocBlockParserFactory.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Consolidation\AnnotatedCommand\Parser\Internal; use Consolidation\AnnotatedCommand\Parser\CommandInfo; /** * Create an appropriate CommandDocBlockParser. */ class CommandDocBlockParserFactory { public static function parse(CommandInfo $commandInfo, \ReflectionMethod $reflection) { return static::create($commandInfo, $reflection)->parse(); } private static function create(CommandInfo $commandInfo, \ReflectionMethod $reflection) { return new BespokeDocBlockParser($commandInfo, $reflection); } }