src/Leevel/Kernel/Console/Autoload.php
protected function dataHelper(): string
    {
        $autoloadFiles = [];

        foreach ($this->files() as $file) {
            foreach ($this->appHelpers() as $whiteFile) {
                if (false !== strpos($file, $whiteFile)) {
                    $autoloadFiles[] = "require_once '".$this->replaceComposerPath($file)."';";
                }
            }
        }

        $autoloadFiles = $this->replaceComposerPath(implode(PHP_EOL, $autoloadFiles));

        return <<<eot
            /**
             * Ignore the helper functions.
             * Because most of them are useless.
             */
            foreach (ComposerStaticInit::\$files as \$fileIdentifier => \$_) {
                \$GLOBALS['__composer_autoload_files'][\$fileIdentifier] = true;
            }

            {$autoloadFiles}
            eot;
    }
protected function dataHelper(): string
    {
        $autoloadFiles = [];

        foreach ($this->files() as $file) {
            foreach ($this->appHelpers() as $whiteFile) {
                if (false !== strpos($file, $whiteFile)) {
                    $autoloadFiles[] = "require_once '".$this->replaceComposerPath($file)."';";
                }
            }
        }

        $autoloadFiles = $this->replaceComposerPath(implode(PHP_EOL, $autoloadFiles));

        return <<<eot
            /**
             * Ignore the helper functions.
             * Because most of them are useless.
             */
            foreach (ComposerStaticInit::\$files as \$fileIdentifier => \$_) {
                \$GLOBALS['__composer_autoload_files'][\$fileIdentifier] = true;
            }

            {$autoloadFiles}
            eot;
    }
取得助手文件数据.

@return string