contributte / di

:sparkles: Extra contrib to nette/di (@nette)
https://contributte.org/packages/contributte/di.html
MIT License
46 stars 9 forks source link

Automatic controllers registration doesn't work with Apitte #27

Closed pytelCZ closed 2 years ago

pytelCZ commented 2 years ago

after upgrade from 0.5.1 to 0.5.2 / 0.5.3 automatic controllers registration doesn't work for Apitte api controllers.... using standard example

f3l1x commented 2 years ago

Hi, thanks. I will take a look as soon as possible.

f3l1x commented 2 years ago

I'm testing https://github.com/contributte/apitte-skeleton/ and it works. Can you specify what is not working for you?

pytelCZ commented 2 years ago

Don't know where the problem is. With 0.5.1 call to API works OK, after upgrade it throws this error

f3l1x commented 2 years ago

Can you share project with me?

pytelCZ commented 2 years ago

Unfortunately, this is a large project, the whole send is not possible. But I can send the API + configuration part (without DB connection and so on). Send me your email to kubin@cube-in.cz

f3l1x commented 2 years ago

I've sent the email. Do you get it?

pytelCZ commented 2 years ago

yes, I'm on holiday this week, I'll send next week on Wednesday

f3l1x commented 2 years ago

@pytelCZ That's silly. I've just discovered what's wrong.

extensions:
    resource: Contributte\DI\Extension\ResourceExtension
    api: Apitte\Core\DI\ApiExtension

It's really needed you have to register resource extension before apitte. It's because resource extension lookup for classes a apitte use that classes.

pytelCZ commented 2 years ago

works perfect, thank you