Questions tagged [pimple]

Pimple is a small Dependency Injection Container for PHP 5.3 that consists of just one file and one class (about 50 lines of code).

Pimple is, according to its website, a small Dependency Injection Container for PHP 5.3 that consists of just one file and one class (about 50 lines of code).

Pimple is created by the same author of the Symfony framework.

46 questions
0
votes
1 answer

Silex Pimple service implementation

Inside my Silex app I need a function which basically does a file_get_contents() my idea was to use something like $app['funky_service'] = function () { $content = file_get_contents(); return $content; } this is working fine, but how can I pass…
kristian nissen
  • 2,809
  • 5
  • 44
  • 68
1 2 3
4