Good catch for multi-classes per file with such feature, but I think it's
not the time to do it.

As an alternative way to find the class is to look at the all files in the
namespace:

src/App/Controller/
---- IndexController.php
---- BlogController.php

IndexController.php contains

```
namespace App\Controller;

class IndexController {}

class IndexGetRequest {}
class ItemGetRequest {}
class ItemPostRequest {}
```

So lookup for \App\Controller\ItemGetRequest will look at
src/App/Controller/*.php files, caching the rest of the classes found
during the lookup.
Or something like that.

I think we should discuss the idea of the Short Constructor here. At least
it does not require autoloading changes, but thanks for mentioning it.
Btw, all possible changes of the autoloading may be proposed to Composer
project without any RFC right now.

-- 
Best regards,
Dmitrii Derepko.
@xepozz

Reply via email to