From: Tim Otten Date: Fri, 25 Aug 2023 22:03:12 +0000 (-0700) Subject: phpstorm - Convert "Generator" to "PhpStormCompilePass" X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0778d8a68ae387ceca755887e5cf8359e3a942ca;p=civicrm-core.git phpstorm - Convert "Generator" to "PhpStormCompilePass" --- diff --git a/tools/extensions/phpstorm/Civi/PhpStorm/Generator.php b/tools/extensions/phpstorm/Civi/PhpStorm/PhpStormCompilePass.php similarity index 90% rename from tools/extensions/phpstorm/Civi/PhpStorm/Generator.php rename to tools/extensions/phpstorm/Civi/PhpStorm/PhpStormCompilePass.php index d555b4850d..8d108c150d 100644 --- a/tools/extensions/phpstorm/Civi/PhpStorm/Generator.php +++ b/tools/extensions/phpstorm/Civi/PhpStorm/PhpStormCompilePass.php @@ -2,6 +2,7 @@ namespace Civi\PhpStorm; +use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; /** @@ -9,13 +10,13 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; * * @link https://www.jetbrains.com/help/phpstorm/2021.3/ide-advanced-metadata.html */ -class Generator { +class PhpStormCompilePass implements CompilerPassInterface { /** * @param \Symfony\Component\DependencyInjection\ContainerBuilder $container * @return void */ - public static function generate(ContainerBuilder $container): void { + public function process(ContainerBuilder $container): void { if (defined('CIVICRM_TEST')) { return; } diff --git a/tools/extensions/phpstorm/info.xml b/tools/extensions/phpstorm/info.xml index 8f4f17f968..6ae54c75c0 100644 --- a/tools/extensions/phpstorm/info.xml +++ b/tools/extensions/phpstorm/info.xml @@ -31,7 +31,6 @@ crmPhpstorm - phpstorm@1.0.0