Skip to content

Commit

Permalink
Merge pull request #159 from ChiragAgg5k/doc-157-fix-container-add-sy…
Browse files Browse the repository at this point in the history
…ntax-readme

fix: incorrect syntax for adding dependency to container
  • Loading branch information
christyjacob4 authored Jan 2, 2025
2 parents c4b9303 + 95ba655 commit 95abfda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $user
->inject('request') // We can insert and use other injections as well
->setCallback(fn (Request $request) => $request->getHeader('x-user-id', 'John Doe'));

$container->add($user);
$container->set($user);

// Defining Route
Http::get('/hello-world')
Expand Down

0 comments on commit 95abfda

Please sign in to comment.