Skip to content

Commit

Permalink
Initial start on the module
Browse files Browse the repository at this point in the history
  • Loading branch information
chevli committed Jul 7, 2016
0 parents commit 91454e0
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
dist: trusty
language: php
php:
- 5.5
- 5.6
- 7.0

env:
- TEST_SUITE=unit
- TEST_SUITE=phpcs

before_script:
- sleep 60

script:
- wget https://github.com/magento/magento2/archive/2.1.0.zip
- unzip -qq 2.1.0.zip
- cd magento2-2.1.0/
10 changes: 10 additions & 0 deletions Console/Command/ListComponentsCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace CtiDigital\Configurator\Console\Command;

use Symfony\Component\Console\Command\Command;

class ListComponentsCommand extends Command {


}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Magento 2 Configurator

[![Build Status](https://travis-ci.org/ctidigital/magento2-configurator.svg?branch=master)](https://travis-ci.org/ctidigital/magento2-configurator)
24 changes: 24 additions & 0 deletions Test/Unit/Console/Command/ListComponentsCommandTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace CtiDigital\Configurator\Console\Command;

use Symfony\Component\Console\Command\Command;

class ListComponentsCommandTest extends \PHPUnit_Framework_TestCase {


/**
* @var ListComponentsCommand
*/
private $command;


protected function setUp()
{
$this->command = new ListComponentsCommand();
}

public function testItIsAConsoleCommand() {
$this->assertInstanceOf(Command::class,$this->command);
}
}
15 changes: 15 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "ctidigital/magento2-configurator",
"description": "Keep magento persistently configured using files",
"type":"magento2-module",
"require": {
"php": "~5.5.0|~5.6.0|~7.0.0"
},
"version": "0.1.0",
"autoload": {
"files": [ "registration.php" ],
"psr-4": {
"CtiDigital\\Configurator\\": ""
}
}
}
10 changes: 10 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Framework\Console\CommandList">
<arguments>
<argument name="commands" xsi:type="array">
<item name="list_components_command" xsi:type="object">CtiDigital\Configurator\Console\Command\ListComponentsCommand</item>
</argument>
</arguments>
</type>
</config>
8 changes: 8 additions & 0 deletions etc/module.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="CtiDigital_Configurator" setup_version="0.1.0">
<sequence>
</sequence>
</module>
</config>
6 changes: 6 additions & 0 deletions registration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'CtiDigital_Configurator',
__DIR__
);

0 comments on commit 91454e0

Please sign in to comment.