Skip to content

Commit

Permalink
Added Config snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksamson committed Jul 11, 2015
1 parent cb0be09 commit 1d3a2cf
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Config/Config-get.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
config('${1:key}', '${2:default}');
]]></content>
<tabTrigger>Config::get</tabTrigger>
<scope>source.php, source.html</scope>
<description>Get the specified configuration value.</description>
</snippet>
8 changes: 8 additions & 0 deletions Config/Config-has.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
Config::has(${1:key})
]]></content>
<tabTrigger>Config::has</tabTrigger>
<scope>source.php, source.html</scope>
<description>Determine if the given configuration value exists.</description>
</snippet>
8 changes: 8 additions & 0 deletions Config/Config-set.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
config(['${1:key}' => '${2:value}']);
]]></content>
<tabTrigger>Config::set</tabTrigger>
<scope>source.php, source.html</scope>
<description>Set a given configuration value.</description>
</snippet>

0 comments on commit 1d3a2cf

Please sign in to comment.