phpDocumentor

Finder

This file is part of phpDocumentor.

The application in this file is used to find all installed phpDocumentor extensions from the current directory. We use this because the project consuming phpDocumentor may not be compatible with the libraries used in phpDocumentor. As phpDocumentor is using symfony, your project might use a different version. Autoloading might dangerous for the execution of phpDocumentor.

Table of Contents

Methods

findProjectRoot()  : string|null
getInstalledPackagesByType()  : array<string|int, mixed>

Methods

findProjectRoot()

public static findProjectRoot(string $startDir) : string|null
Parameters
$startDir : string
Return values
string|null

getInstalledPackagesByType()

public static getInstalledPackagesByType(string $projectDir[, string $type = 'phpdoc-extension' ]) : array<string|int, mixed>
Parameters
$projectDir : string
$type : string = 'phpdoc-extension'
Return values
array<string|int, mixed>

        
On this page

Search results