How does the dependency container anonymous function know what $c is?

It’s not even a “Slim thing”. This feature works with Pimple even without any framework. And I want to understand how. And if you can’t explain it, please remain silent. At least stop quoting things! Rather try to explain in your own words.