#!/usr/bin/env php 'yii2-apidoc', 'basePath' => __DIR__, 'enableCoreCommands' => false, 'controllerNamespace' => 'yii\\apidoc\\commands', ]); if ($vendorPath !== null) { $application->setVendorPath($vendorPath); } $exitCode = $application->run(); exit($exitCode);