File tree Expand file tree Collapse file tree 14 files changed +478
-0
lines changed
actions/generation/generator/ArgumentInjectionGenerator
replaceObjectValueWithFactoryValue
replaceObjectValueWithNullValue
replaceObjectValueWithProxyValue
project/magento2/app/code/Foo/Bar/etc/crontab
tests/com/magento/idea/magento2plugin/actions/generation/generator Expand file tree Collapse file tree 14 files changed +478
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
4
+ <type name =" Foo\Bar\Model\Test" >
5
+ <arguments >
6
+ <argument name =" methods" xsi : type =" array" >
7
+ <item name =" method1" xsi : type =" string" >QW1</item >
8
+ <item name =" method2" xsi : type =" string" >QW2</item >
9
+ <item name =" method3" xsi : type =" string" >QW3</item >
10
+ <item name =" method4" xsi : type =" string" >QW4</item >
11
+ <item name =" method5" xsi : type =" string" >QW5</item >
12
+ </argument >
13
+ </arguments >
14
+ </type >
15
+ </config >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
4
+ <type name =" Foo\Bar\Model\Test" >
5
+ <arguments >
6
+ <argument name =" isEmpty" xsi : type =" boolean" >false</argument >
7
+ </arguments >
8
+ </type >
9
+ </config >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
4
+ <type name =" Foo\Bar\Model\Test" >
5
+ <arguments >
6
+ <argument name =" defaultService" xsi : type =" const" >Foo\Bar\Model\ServiceTest::DEFAULT_SERVICE</argument >
7
+ </arguments >
8
+ </type >
9
+ </config >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
4
+ <type name =" Foo\Bar\Model\Test" >
5
+ <arguments >
6
+ <argument name =" defaultArea" xsi : type =" init_parameter" >Foo\Bar\Model\AreaTest::DEFAULT_AREA</argument >
7
+ </arguments >
8
+ </type >
9
+ </config >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
4
+ <type name =" Foo\Bar\Model\Test" >
5
+ <arguments >
6
+ <argument name =" methods" xsi : type =" array" >
7
+ <item name =" method1" xsi : type =" string" >QW1</item >
8
+ <item name =" method2" xsi : type =" string" >QW2</item >
9
+ <item name =" method3" xsi : type =" string" >QW3</item >
10
+ <item name =" method4" xsi : type =" string" >QW4</item >
11
+ <item name =" nested" xsi : type =" array" >
12
+ <item name =" nested1" xsi : type =" string" >NT1</item >
13
+ <item name =" nested2" xsi : type =" boolean" >true</item >
14
+ <item name =" nested3" xsi : type =" null" />
15
+ </item >
16
+ </argument >
17
+ </arguments >
18
+ </type >
19
+ </config >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
4
+ <type name =" Foo\Bar\Model\Test" >
5
+ <arguments >
6
+ <argument name =" object" xsi : type =" null" />
7
+ </arguments >
8
+ </type >
9
+ </config >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
4
+ <type name =" Foo\Bar\Model\Test" >
5
+ <arguments >
6
+ <argument name =" age" xsi : type =" number" >12</argument >
7
+ </arguments >
8
+ </type >
9
+ </config >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
4
+ <type name =" Foo\Bar\Model\Test" >
5
+ <arguments >
6
+ <argument name =" object" xsi : type =" object" >Foo\Bar\Model\Service</argument >
7
+ </arguments >
8
+ </type >
9
+ </config >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
4
+ <type name =" Foo\Bar\Model\Test" >
5
+ <arguments >
6
+ <argument name =" name" xsi : type =" string" >test</argument >
7
+ </arguments >
8
+ </type >
9
+ </config >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
4
+ <type name =" Foo\Bar\Model\Test" >
5
+ <arguments >
6
+ <argument name =" anotherArgument1" xsi : type =" number" >1111</argument >
7
+ <argument name =" object" xsi : type =" object" >Foo\Bar\Model\ServiceFactory</argument >
8
+ <argument name =" anotherArgument2" xsi : type =" string" >Just another argument</argument >
9
+ </arguments >
10
+ </type >
11
+ </config >
You can’t perform that action at this time.
0 commit comments