ReflectionExtension::getDependencies
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.1.3, PHP 7, PHP 8)
Gets dependencies
Description
ReflectionExtension::getDependencies(): array
Gets dependencies, by listing both required and conflicting dependencies.
Parameters Parameters
Return Values
An associative array with dependencies as keys and either Required, Optional or Conflicts as the values.
Examples
ReflectionExtension::getDependencies example
php
<?php
$dom = new ReflectionExtension('dom');
print_r($dom->getDependencies());
?>The above example will output something similar to:
output
Array
(
[libxml] => Required
[domxml] => Conflicts
)See Also
ReflectionClass::getVersion