Skip to content
Browse files

Added "model" snippet, expands to "Model::factory(...)"

  • Loading branch information...
1 parent 7ee8946 commit cb6eb02fe3a3fa5a28aa853913663f31638da470 @shadowhand shadowhand committed Mar 31, 2011
Showing with 17 additions and 0 deletions.
  1. +16 −0 Snippets/Model Factory.tmSnippet
  2. +1 −0 info.plist
View
16 Snippets/Model Factory.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>Model::factory(${1:'${2:name}'})$3;</string>
+ <key>name</key>
+ <string>Model Factory</string>
+ <key>scope</key>
+ <string>source.php</string>
+ <key>tabTrigger</key>
+ <string>model</string>
+ <key>uuid</key>
+ <string>8C8779E2-FC83-4C1A-8800-B5BF595697BB</string>
+</dict>
+</plist>
View
1 info.plist
@@ -152,6 +152,7 @@
<string>2E30813D-15F3-499B-9F57-2DFDA18D65B1</string>
<string>A0C55EBE-3966-4B38-9C92-0B1B344EFD7A</string>
<string>E6968CCF-8B43-461B-91EB-24914B17243E</string>
+ <string>8C8779E2-FC83-4C1A-8800-B5BF595697BB</string>
<string>B3ADD9FF-9010-415B-90D6-0F426A311239</string>
<string>DD782E50-6BA8-43B1-A2F3-02E870931FAB</string>
<string>272FBBDF-AA93-4807-B754-475AAA6EC52C</string>

0 comments on commit cb6eb02

Please sign in to comment.
Something went wrong with that request. Please try again.