8000 [PropertyInfo] Allow to use a custom DocBlock factory with the PHPDoc extractor by dunglas · Pull Request #17932 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[PropertyInfo] Allow to use a custom DocBlock factory with the PHPDoc extractor #17932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use phpDocumentor\Reflection\DocBlock;
use phpDocumentor\Reflection\DocBlockFactory;
use phpDocumentor\Reflection\DocBlockFactoryInterface;
use phpDocumentor\Reflection\Types\Compound;
use phpDocumentor\Reflection\Types\ContextFactory;
use phpDocumentor\Reflection\Types\Null_;
Expand Down Expand Up @@ -46,9 +47,9 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property
*/
private $contextFactory;

public function __construct()
public function __construct(DocBlockFactoryInterface $docBlockFactory = null)
{
$this->docBlockFactory = DocBlockFactory::createInstance();
$this->docBlockFactory = $docBlockFactory ?: DocBlockFactory::createInstance();
$this->contextFactory = new ContextFactory();
}

Expand Down
0