-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #466 from magento/pre-release-3.1.0
Pre release 3.1.0
- Loading branch information
Showing
33 changed files
with
879 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
resources/fileTemplates/internal/Magento Data Model Interface.php.ft
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<?php | ||
#parse("PHP File Header.php") | ||
declare(strict_types=1); | ||
|
||
#if (${NAMESPACE}) | ||
namespace ${NAMESPACE}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<?php | ||
#parse("PHP File Header.php") | ||
declare(strict_types=1); | ||
|
||
#if (${NAMESPACE}) | ||
namespace ${NAMESPACE}; | ||
|
16 changes: 16 additions & 0 deletions
16
resources/fileTemplates/internal/Magento Message Queue Consumer Class.php.ft
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
#parse("PHP File Header.php") | ||
#if (${NAMESPACE}) | ||
|
||
namespace ${NAMESPACE}; | ||
#end | ||
|
||
use Magento\Framework\MessageQueue\ConsumerInterface; | ||
|
||
class ${CLASS_NAME} implements ConsumerInterface | ||
{ | ||
public function process($maxNumberOfMessages = null) | ||
{ | ||
// TODO: Implement process() method. | ||
} | ||
} |
Empty file.
14 changes: 14 additions & 0 deletions
14
resources/fileTemplates/internal/Magento Message Queue Handler Class.php.ft
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
#parse("PHP File Header.php") | ||
#if (${NAMESPACE}) | ||
|
||
namespace ${NAMESPACE}; | ||
#end | ||
|
||
class ${CLASS_NAME} | ||
{ | ||
public function execute() | ||
{ | ||
//TODO: implement method | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
resources/fileTemplates/internal/Magento Message Queue Handler Class.php.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
src/com/magento/idea/magento2plugin/actions/generation/data/MessageQueueClassData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
package com.magento.idea.magento2plugin.actions.generation.data; | ||
|
||
import com.magento.idea.magento2plugin.magento.files.MessageQueueClassPhp; | ||
|
||
@SuppressWarnings({"PMD.DataClass"}) | ||
public class MessageQueueClassData { | ||
private final String name; | ||
private final String namespace; | ||
private final String path; | ||
private final String fqn; | ||
private final MessageQueueClassPhp.Type type; | ||
|
||
/** | ||
* MessageQueueClassData constructor. | ||
* | ||
* @param name String | ||
* @param namespace String | ||
* @param path String | ||
* @param fqn String | ||
* @param type MessageQueueClassPhp.Type | ||
*/ | ||
public MessageQueueClassData( | ||
final String name, | ||
final String namespace, | ||
final String path, | ||
final String fqn, | ||
final MessageQueueClassPhp.Type type | ||
) { | ||
this.name = name; | ||
this.namespace = namespace; | ||
this.path = path; | ||
this.fqn = fqn; | ||
this.type = type; | ||
} | ||
|
||
/** | ||
* Get data provider class name. | ||
* | ||
* @return String | ||
*/ | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
/** | ||
* Get data provider class namespace. | ||
* | ||
* @return String | ||
*/ | ||
public String getNamespace() { | ||
return namespace; | ||
} | ||
|
||
/** | ||
* Get path. | ||
* | ||
* @return String | ||
*/ | ||
public String getPath() { | ||
return path; | ||
} | ||
|
||
/** | ||
* Get FQN. | ||
* | ||
* @return String | ||
*/ | ||
public String getFqn() { | ||
return fqn; | ||
} | ||
|
||
/** | ||
* Get Type. | ||
* | ||
* @return MessageQueueClassPhp.Type | ||
*/ | ||
public MessageQueueClassPhp.Type getType() { | ||
return type; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.