Skip to content

Commit

Permalink
using guzzle/guzzle-service with service description
Browse files Browse the repository at this point in the history
  • Loading branch information
Plamen Garkov committed Dec 20, 2016
1 parent f0ab4af commit 8620093
Show file tree
Hide file tree
Showing 6 changed files with 404 additions and 64 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"type": "library",
"require": {
"php": "^5.6",
"guzzlehttp/guzzle": "^6.2",
"zendframework/zend-servicemanager": "^3.1",
"zendframework/zend-mvc-console": "^1.1"
"zendframework/zend-mvc-console": "^1.1",
"guzzlehttp/guzzle-services": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7"
Expand Down
161 changes: 140 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions src/Controller/ConsoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ public function reviewsAction()

public function markBegin()
{
$this->getConsole()->writeLine('============== BEGIN ==============');
$delimiter = str_repeat('=', 10);
$this->getConsole()->writeLine(implode('BEGIN', [
$delimiter,
$delimiter
]));
}

public function markEnd()
Expand All @@ -148,7 +152,11 @@ public function markEnd()
$this->getConsole()->writeLine("Done");
}

$this->getConsole()->writeLine('============== END ==============');
$delimiter = str_repeat('=', 10);
$this->getConsole()->writeLine(implode('END', [
$delimiter,
$delimiter
]));
}

/**
Expand Down
Loading

0 comments on commit 8620093

Please sign in to comment.