Last active
December 20, 2015 20:09
-
-
Save iowillhoit/6188601 to your computer and use it in GitHub Desktop.
*Sublime Text Snippet*
Laravel 4 Snippet: Service Provider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
<?php namespace ${1:Your\Namespace}; | |
use App; | |
use Illuminate\Support\ServiceProvider; | |
class ${2:providerName}Provider extends ServiceProvider{ | |
${3: | |
public function register() | |
{ | |
${4:// Bindings: App::bind() or App::singleton()} | |
\} | |
}${5: | |
public function boot() | |
{ | |
${6:// Everything else: event listeners, error handlers, extensions} | |
\} | |
}} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>l4sp</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.php</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment