A
A
Arthur Grand2017-11-14 08:14:55
Composer
Arthur Grand, 2017-11-14 08:14:55

How to set up composer autoloader?

Now I have it written like this

{
  "autoload": {
    "psr-4": {
      "Module\\": [
        "app/modules",
        "system/modules"
      ]
    },
  }
}

And the classes are available at this path root:app\modules\ModuleName\SomeClass.php
How can I force the composer to look not at the root of the ModuleName module, but at the \src folder in it, but so that the namespace would be preserved Module\ModuleName ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question