Attempted to load class "Spreadsheet" from namespace "PhpOffice\PhpSpreadsheet" - Symnfony4

886 Views Asked by At

I have already imported PhpSpreadSheet in my controller.

enter image description here

I do this for calling the lib :

enter image description here

The libs is present in my vendor folder. (PHP 7.3)

Why I have the error below ??

"Attempted to load class "Spreadsheet" from namespace "PhpOffice\PhpSpreadsheet".↵Did you forget a "use" statement for another namespace"

Thanks

1

There are 1 best solutions below

0
On BEST ANSWER

I update symfony flex and it's work. Thanks for you help.