Skip to content
Advertisement

problem lose class address when update composer 1 to 2

i have problem when install or update composer. When the composer is updated and generated, the autoload file for example autoload_classmap.php changes and no class or file is found. I do not know how to solve. Thanks for the help.

composer.json file

JavaScript

}

and when update composer say: not found class App/ClearingHourTime

class file is :

JavaScript

Advertisement

Answer

I think you have an issue with ClearingHourTime.php, in that file as you are declaring two classes. I think that this practice does not meet psr4 standard, and you are loading app/ under psr4.

To solve this problem you have two options (use only one).

  1. add “classmap”: [“app/ClearingHourTime”]
JavaScript
  1. add “app/ClearingHourTime” to files. like
JavaScript

I hope this help

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement