Welcome Guest, Not a member yet? Register   Sign In
Documentation: Creating Composer Packages
#14

(This post was last modified: 08-01-2023, 02:10 AM by iRedds.)

@kenjis I think the package developer should think ahead about the namespace name. So to speak, a test of maturity.

@kenjis I placed the module in the vendor directory.
That is, if
"Acme\\" : "vendor/Acme/" - class autoloading works but short config name is not present and also Acme namespace is not visible via "php spark namespaces" command.
"Acme\\" : "Acme/" - everything works as expected.

Why did I specify vendor/Acme/?
If the developer can use the composer locally, but not on the server (that is, the developer stores the vendor directory in the repository and copies it to the server), then in this case he may well place his module in the vendor directory.
I believe that there should be no such restriction.

@luckmoshy Yes, I may be biased. Like most of the core team. =)
Reply


Messages In This Thread
RE: Documentation: Creating Composer Packages - by iRedds - 08-01-2023, 01:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB