flawlol / facade-ide-helper
flawlol/facade 包的 IDE 辅助工具
v1.1.5
2024-08-27 12:18 UTC
Requires
- php: >=8.1
- flawlol/facade: >=1.0
- symfony/framework-bundle: >=6.4
README
Flawlol 的 Symfony - Facade IDE 辅助工具
为 Symfony 的 Facade 生成 IDE 辅助文件。
作者
- name: Norbert Kecső
- email: flawlesslol123@gmail.com
安装
要安装此包,请使用 Composer: composer require flawlol/facade-ide-helper
要求
- PHP >= 8.1
- Symfony 框架包 >=6.4
- flawlol/facade >=1.0
用法
要生成 Facade 辅助文件,请运行以下命令: php bin/console app:generate-facade-helpers
命令
app:generate-facade-helpers
命令生成一个包含必要 Facade 映射的 _ide-helper.php
文件。
<?php namespace App\Facade { class Arr { /** * @param array $array * @param string $keyPath * @param mixed $defaultValue * @return mixed */ public static function get(array $array, string $keyPath, mixed $defaultValue = NULL): mixed { /** @var \App\Service\Common\Array\ArrayHelper $instance */ return $instance->get($array, $keyPath, $defaultValue); } } }
许可协议
此软件包是开源软件,采用 MIT 许可协议。