Skip to content

Commit 91454e0

Browse files
committed
Initial start on the module
0 parents  commit 91454e0

File tree

9 files changed

+95
-0
lines changed

9 files changed

+95
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea/

.travis.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
dist: trusty
2+
language: php
3+
php:
4+
- 5.5
5+
- 5.6
6+
- 7.0
7+
8+
env:
9+
- TEST_SUITE=unit
10+
- TEST_SUITE=phpcs
11+
12+
before_script:
13+
- sleep 60
14+
15+
script:
16+
- wget https://github.com/magento/magento2/archive/2.1.0.zip
17+
- unzip -qq 2.1.0.zip
18+
- cd magento2-2.1.0/
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace CtiDigital\Configurator\Console\Command;
4+
5+
use Symfony\Component\Console\Command\Command;
6+
7+
class ListComponentsCommand extends Command {
8+
9+
10+
}

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Magento 2 Configurator
2+
3+
[![Build Status](https://travis-ci.org/ctidigital/magento2-configurator.svg?branch=master)](https://travis-ci.org/ctidigital/magento2-configurator)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace CtiDigital\Configurator\Console\Command;
4+
5+
use Symfony\Component\Console\Command\Command;
6+
7+
class ListComponentsCommandTest extends \PHPUnit_Framework_TestCase {
8+
9+
10+
/**
11+
* @var ListComponentsCommand
12+
*/
13+
private $command;
14+
15+
16+
protected function setUp()
17+
{
18+
$this->command = new ListComponentsCommand();
19+
}
20+
21+
public function testItIsAConsoleCommand() {
22+
$this->assertInstanceOf(Command::class,$this->command);
23+
}
24+
}

composer.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "ctidigital/magento2-configurator",
3+
"description": "Keep magento persistently configured using files",
4+
"type":"magento2-module",
5+
"require": {
6+
"php": "~5.5.0|~5.6.0|~7.0.0"
7+
},
8+
"version": "0.1.0",
9+
"autoload": {
10+
"files": [ "registration.php" ],
11+
"psr-4": {
12+
"CtiDigital\\Configurator\\": ""
13+
}
14+
}
15+
}

etc/di.xml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0"?>
2+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
3+
<type name="Magento\Framework\Console\CommandList">
4+
<arguments>
5+
<argument name="commands" xsi:type="array">
6+
<item name="list_components_command" xsi:type="object">CtiDigital\Configurator\Console\Command\ListComponentsCommand</item>
7+
</argument>
8+
</arguments>
9+
</type>
10+
</config>

etc/module.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
4+
<module name="CtiDigital_Configurator" setup_version="0.1.0">
5+
<sequence>
6+
</sequence>
7+
</module>
8+
</config>

registration.php

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
\Magento\Framework\Component\ComponentRegistrar::register(
3+
\Magento\Framework\Component\ComponentRegistrar::MODULE,
4+
'CtiDigital_Configurator',
5+
__DIR__
6+
);

0 commit comments

Comments
 (0)