Skip to content

Commit

Permalink
Bind
Browse files Browse the repository at this point in the history
  • Loading branch information
paulredmond committed Feb 13, 2017
1 parent 18d2851 commit b888d6b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions snippets/application.cson
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
});
"""

# Define a service in the application
'Service container binding':
'prefix': 'bind'
'body': """
$this->app->bind($1, function ($app) {
$2
});
"""

# Define an alias
'Define an alias for a service':
'prefix': 'alias'
Expand Down

0 comments on commit b888d6b

Please sign in to comment.