-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
massive refactoring for cleaner usage
- Loading branch information
1 parent
7b56b64
commit e2cda5d
Showing
57 changed files
with
927 additions
and
1,542 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ php: | |
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- hhvm | ||
|
||
matrix: | ||
allow_failures: | ||
php: hhvm | ||
|
||
before_script: | ||
- php bin/vendors.php | ||
|
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 was deleted.
Oops, something went wrong.
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,14 +1,15 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
if ((!@include __DIR__.'/../../../autoload.php') && (!@include __DIR__.'/../vendor/autoload.php')) { | ||
if (!@include __DIR__.'/../vendor/autoload.php') { | ||
die('You must set up the project dependencies, run the following commands:'.PHP_EOL. | ||
'curl -s http://getcomposer.org/installer | php'.PHP_EOL. | ||
'php composer.phar install'.PHP_EOL); | ||
} | ||
|
||
use YumlPhp\Console\Application; | ||
use YumlPhp\Application; | ||
use YumlPhp\Container; | ||
|
||
// run the command application | ||
$application = new Application(); | ||
$application = new Application(new Container()); | ||
$application->run(); |
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,29 @@ | ||
{ | ||
"alias": "yuml-php.phar", | ||
"chmod": "0755", | ||
"compactors": [ | ||
"Herrera\\Box\\Compactor\\Json", | ||
"Herrera\\Box\\Compactor\\Php" | ||
], | ||
"directories": [ | ||
"src" | ||
], | ||
"extract": true, | ||
"files": [ | ||
"LICENSE" | ||
], | ||
"finder": [ | ||
{ | ||
"name": "*.php", | ||
"exclude": [ | ||
"tests", "Tests" | ||
], | ||
"in": "vendor" | ||
} | ||
], | ||
"git-commit": "git-commit", | ||
"git-version": "git-version", | ||
"main": "bin/yuml-php", | ||
"output": "yuml-php-@git-version@.phar", | ||
"stub": true | ||
} |
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,29 +1,42 @@ | ||
{ | ||
"name" : "digitalkaoz/yuml-php", | ||
"homepage" : "https://github.com/digitalkaoz/yuml-php", | ||
"description" : "a PHP Adapter for http://yuml.me", | ||
"type": "library", | ||
"license": "MIT", | ||
"name": "digitalkaoz/yuml-php", | ||
"homepage": "https://github.com/digitalkaoz/yuml-php", | ||
"description": "a PHP Adapter for http://yuml.me", | ||
"type": "library", | ||
"license": "MIT", | ||
|
||
"authors": [ | ||
{ | ||
"name": "Robert Schönthal", | ||
"email": "seroscho@googlemail.com", | ||
"name": "Robert Schönthal", | ||
"email": "seroscho@googlemail.com", | ||
"homepage": "http://digitalkaoz.net" | ||
} | ||
], | ||
|
||
"require": { | ||
"ext-tokenizer": "*", | ||
"symfony/finder": "@stable", | ||
"symfony/console": "@stable", | ||
"kriswallsmith/buzz": "@stable", | ||
"andrewsville/php-token-reflection": "@stable" | ||
"ext-tokenizer": "*", | ||
"symfony/finder": "@stable", | ||
"pimple/pimple": "@stable", | ||
"symfony/console": "@stable", | ||
"kriswallsmith/buzz": "@stable", | ||
"andrewsville/php-token-reflection": "@stable" | ||
}, | ||
|
||
"require-dev" : { | ||
"kherge/box": "@stable" | ||
}, | ||
|
||
"autoload": { | ||
"psr-0": { | ||
"YumlPhp": "src/" | ||
"psr-4": { | ||
"YumlPhp\\": "src/YumlPhp" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"YumlPhp\\Tests\\": "tests/YumlPhp/Tests", | ||
"YumlPhp\\Tests\\Integration\\": "tests/Integration" | ||
} | ||
}, | ||
|
||
"bin": ["bin/yuml-php"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of yuml-php | ||
* | ||
* (c) Robert Schönthal <seroscho@googlemail.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace YumlPhp; | ||
|
||
use Symfony\Component\Console\Application as BaseApplication; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use Symfony\Component\Console\Output\ConsoleOutput; | ||
|
||
/** | ||
* The console application that handles the commands | ||
* | ||
* @author Robert Schönthal <seroscho@googlemail.com> | ||
*/ | ||
class Application extends BaseApplication | ||
{ | ||
/** | ||
* @var \Pimple | ||
*/ | ||
private $container; | ||
|
||
/** | ||
* @param \Pimple $container | ||
*/ | ||
public function __construct(\Pimple $container) | ||
{ | ||
parent::__construct('yuml-php', '@package_version@'); | ||
|
||
$this->container = $container; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function doRun(InputInterface $input = null, OutputInterface $output) | ||
{ | ||
$this->registerCommands(); | ||
|
||
return parent::doRun($input, $output); | ||
} | ||
|
||
/** | ||
* Initializes the commands | ||
*/ | ||
private function registerCommands() | ||
{ | ||
$this->add($this->container['command.classes']); | ||
$this->add($this->container['command.activity']); | ||
$this->add($this->container['command.use_case']); | ||
} | ||
} |
Oops, something went wrong.