Skip to content

Commit 98d80df

Browse files
authored
Merge pull request #355 from magento/fixed-library-root
# 15 Fixed library root
2 parents 91a892c + a51f1c6 commit 98d80df

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

resources/META-INF/plugin.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@
185185
enabledByDefault="true" level="ERROR"
186186
implementationClass="com.magento.idea.magento2plugin.inspections.xml.AclResourceXmlInspection"/>
187187

188-
<libraryRoot id=".phpstorm.meta.php" path=".phpstorm.meta.php/" runtime="false"/>
189-
190188
<internalFileTemplate name="Magento Module Composer"/>
191189
<internalFileTemplate name="Magento Module Registration Php"/>
192190
<internalFileTemplate name="Magento Module Xml"/>
@@ -219,6 +217,7 @@
219217
<extensions defaultExtensionNs="com.jetbrains.php">
220218
<frameworkProjectConfigurableProvider implementation="com.magento.idea.magento2plugin.project.ConfigurableProvider"/>
221219
<frameworkUsageProvider implementation="com.magento.idea.magento2plugin.project.UsagesProvider"/>
220+
<libraryRoot id="phpstorm.meta.php" path="/phpstorm.meta.php/" runtime="false"/>
222221
</extensions>
223222

224223
</idea-plugin>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
namespace PHPSTORM_META {
4+
override(\Magento\Framework\ObjectManagerInterface::get(0), map(['' => '@']));
5+
override(\Magento\Framework\ObjectManagerInterface::create(0), map(['' => '@']));
6+
}

0 commit comments

Comments
 (0)