Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhpStorm 2022.3.1 Не работает подсказка использования не разрешенных классов #13

Open
GHostlyFOX opened this issue Jan 13, 2023 · 1 comment

Comments

@GHostlyFOX
Copy link

GHostlyFOX commented Jan 13, 2023

Вот пример настроек.
Классы самих моделей не описаны:

name: "@catalog"
description: "Каталог товаров"
namespace: "App\\Modules\\Catalog\\"

# "Public API" of the modulite: classes, functions, constants, etc.
# Symbols not listed here will be internal.
export:
  - "Repositories\\Interfaces\\CategoryRepositoryInterface"
  - "Repositories\\Interfaces\\ProductRepositoryInterface"

# Class members to exclude, they override "export".
force-internal:

# Dependencies: other modulites, global classes, defines, etc.
require:
  - "\\App\\Http\\Controllers\\Controller"


internal:

# Granting partial access to internal symbols, "as an exception".
allow-internal-access:

но обращение к моделям App\Modules\Catalog\Models\Product из другого модуля не приводит ни к чему, ни каких подсказок не появляется.

Версия PhpStorm - 2022.3.1
Конфигурация базовая без донастроек.
Ядро - Laravel 9

@Ragaga
Copy link

Ragaga commented Mar 30, 2023

Так же, при инициализации модуля, не все используемые классы определяются корректно
в require помещаются только классы из того же неймспейса, внешние зависимости - функции, пакеты, не добавляются

плагин огонь, впечатлен! очень надеюсь на его развитие

PhpStorm 2022.3.2
Symfony 6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants