-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from silktide/simplify
Simplify
- Loading branch information
Showing
9 changed files
with
133 additions
and
497 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/vendor | ||
/.idea | ||
/composer.lock |
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,10 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
$baseAutoloader = __DIR__ . "/vendor/autoload.php"; | ||
|
||
// Otherwise, we're probably included via require-dev | ||
require_once("vendor/autoload.php"); | ||
|
||
$verifyCommand = new \Silktide\Pharmacist\VerifyCommand(); | ||
$verifyCommand->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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"name": "silktide/syringe-verifier", | ||
"description": "Verifies that your syringe config is correct", | ||
"name": "silktide/pharmacist", | ||
"description": "Deals with verifying that child projects using silktide/syringe and puzzle-di can correctly build containers", | ||
"authors": [ | ||
{ | ||
"name": "Doug", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"silktide/syringe": "^1.1", | ||
"symfony/console": "~2.8|^3.0" | ||
"silktide/syringe": "~1" | ||
}, | ||
"bin": ["bin/pharmacist"], | ||
"autoload": { | ||
"psr-4": { | ||
"Silktide\\SyringeVerifier\\": "src/" | ||
"Silktide\\Pharmacist\\": "src/" | ||
} | ||
} | ||
} |
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,23 +1,16 @@ | ||
<?php | ||
|
||
|
||
namespace Silktide\SyringeVerifier; | ||
|
||
namespace Silktide\Pharmacist; | ||
|
||
trait Loggable | ||
{ | ||
public function success($message) | ||
{ | ||
$this->log($message, "\033[32m"); | ||
} | ||
|
||
public function log($message, $color="") | ||
{ | ||
echo $color.$message."\033[0m\n"; | ||
echo $color . "[" . date("d/m/Y H:i:s") . "] " . $message."\033[0m\n"; | ||
} | ||
|
||
public function error($message) | ||
{ | ||
$this->log($message, "\033[31m"); | ||
} | ||
} | ||
} |
Oops, something went wrong.