Autoload of the Poser does not find class 2

Asked

Viewed 62 times

1

I saw a question similar to mine, but I tried the proposed solution and it does not find the class at all. I’m already getting discouraged in using the Poser autoloader.

Important: My environment is Windows (Server 2016) with IIS. the physical structure of my directory is like this: Local onde estao os arquivos

my Composer.json (same index.php directory) looks like this:

composer.json

My index is like this:

index.php

My Settings class like this:

classe Settings

I’ve tried several variations on use and namespace. The answer is always the same:

Fatal error: Uncaught Error: Class 'Edant Settings' not found in D: WEB WS edant index.php:9 Stack trace: #0 {main} thrown in D: WEB WS edant index.php on line 9

Where am I going wrong?

  • Present the code in text form, not image, I recommend you read here: https://pt.meta.stackoverflow.com/a/5485/28595

  • Note the writing scr in the autoload. src != scr

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.