CakeFest 2024: The Official CakePHP Conference

ReflectionExtension::getDependencies

(PHP 5 >= 5.1.3, PHP 7, PHP 8)

ReflectionExtension::getDependencies依存性を取得する

説明

public ReflectionExtension::getDependencies(): array

必須の依存性、衝突する依存性の両方を取得します。

パラメータ

この関数にはパラメータはありません。

戻り値

依存する拡張モジュールをキー、そして RequiredOptional あるいは Conflicts のいずれかを値とする連想配列を返します。

例1 ReflectionExtension::getDependencies() の例

<?php
$dom
= new ReflectionExtension('dom');

print_r($dom->getDependencies());
?>

上の例の出力は、 たとえば以下のようになります。

Array
(
    [libxml] => Required
    [domxml] => Conflicts
)

参考

  • ReflectionClass::getVersion()

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top