Skip to content

Commit

Permalink
New template '2magento setup uninstall'
Browse files Browse the repository at this point in the history
  • Loading branch information
jalogut committed Nov 28, 2017
1 parent f42df86 commit 9c4f8ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Preferences/templates/StmpflMagento2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -630,4 +630,9 @@
<option name="PHP" value="true" />
</context>
</template>
<template name="2magento setup uninstall" value="use Magento\Framework\Setup\UninstallInterface;&#10;use Magento\Framework\Setup\SchemaSetupInterface;&#10;use Magento\Framework\Setup\ModuleContextInterface;&#10;&#10;class Uninstall implements UninstallInterface&#10;{&#10; /**&#10; * @SuppressWarnings(PHPMD.UnusedFormalParameter)&#10; * @param SchemaSetupInterface $setup&#10; * @param ModuleContextInterface $context&#10; */&#10; public function uninstall(SchemaSetupInterface $setup, ModuleContextInterface $context)&#10; {&#10; $setup-&gt;startSetup();&#10;&#10;// $setup-&gt;getConnection()-&gt;dropTable(&#10;// $setup-&gt;getTable('table_name')&#10;// );&#10;//&#10;// $setup-&gt;getConnection()-&gt;dropColumn(&#10;// $setup-&gt;getTable('table_name'),&#10;// 'column_name'&#10;// );&#10;&#10; $setup-&gt;endSetup();&#10; }&#10;}" toReformat="false" toShortenFQNames="true">
<context>
<option name="PHP" value="true" />
</context>
</template>
</templateSet>
1 change: 1 addition & 0 deletions docs/liveTemplates.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,4 @@
* 2magento test dataProvider function
* 2magento customer add attribute
* 2magento setup order quote field
* 2magento setup uninstall

0 comments on commit 9c4f8ac

Please sign in to comment.