Skip to content

Commit 9158c0f

Browse files
committed
add data provider interface
1 parent 84baa07 commit 9158c0f

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

Api/DataProviderInterface.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
/**
3+
* Copyright © Acid Unit (https://acid.7prism.com). All rights reserved.
4+
* See LICENSE file for license details.
5+
*/
6+
7+
/** @noinspection PhpPluralMixedCanBeReplacedWithArrayInspection */
8+
9+
declare(strict_types=1);
10+
11+
namespace AcidUnit\Core\Api;
12+
13+
/**
14+
* Interface for data provider
15+
*
16+
* @api
17+
*/
18+
interface DataProviderInterface
19+
{
20+
/**
21+
* Get Data
22+
*
23+
* @return array<mixed>
24+
*/
25+
public function getData(): array;
26+
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "acid-unit/module-core",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Core module for [\uD83E\uDDEAAcid Unit] extensions",
55
"type": "magento2-module",
66
"require": {

etc/module.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
<module name="AcidUnit_Core">
1212
<sequence>
1313
<module name="Magento_Directory"/>
14-
<module name="Magento_PageCache"/>
1514
<module name="Magento_GraphQlCache"/>
15+
<module name="Magento_PageCache"/>
16+
<module name="Magento_Store"/>
1617
</sequence>
1718
</module>
1819
</config>

0 commit comments

Comments
 (0)