In FileLoader.php line 177:
Expected to find class "VendorName\PrefixClient\Class" in file "/path/to/app/vendor/vendorname/prefix-client/src/Class.php" while importing services from resource "../vendor/vendorname/prefix-client/src/", but it was not found! Check the namespace prefix used with the resource in /path/to/app/config/services.yaml (which is being imported from "/path/to/app/src/Kernel.php").
In FileLoader.php line 356:
Expected to find class "VendorName\PrefixClient\Class" in file "/path/to/app/vendor/vendorname/prefix-client/src/Class.php" while importing services from resource "../vendor/vendorname/prefix-client/src/", but it was not found! Check the namespace prefix used with the resource.
Я хочу использовать стороннюю библиотеку в качестве службы в своем приложении Symfony 7, но получаю следующую ошибку: [code]In FileLoader.php line 177:
Expected to find class "VendorName\PrefixClient\Class" in file "/path/to/app/vendor/vendorname/prefix-client/src/Class.php" while importing services from resource "../vendor/vendorname/prefix-client/src/", but it was not found! Check the namespace prefix used with the resource in /path/to/app/config/services.yaml (which is being imported from "/path/to/app/src/Kernel.php").
In FileLoader.php line 356:
Expected to find class "VendorName\PrefixClient\Class" in file "/path/to/app/vendor/vendorname/prefix-client/src/Class.php" while importing services from resource "../vendor/vendorname/prefix-client/src/", but it was not found! Check the namespace prefix used with the resource. [/code] Вот как это делается в Symfony: [b]services.yaml[/b] [code]services: ... VendorName\PrefixClient\: resource: '../vendor/vendorname/prefix-client/src/' [/code] [b]vendor/vendorname/prefix-client/src/Class.php[/b] [code]