Skip to content

Commit

Permalink
Merge pull request #1 from silktide/simplify
Browse files Browse the repository at this point in the history
Simplify
  • Loading branch information
dochne authored Sep 15, 2017
2 parents 482fcb4 + c2cb504 commit fb23c13
Show file tree
Hide file tree
Showing 9 changed files with 133 additions and 497 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor
/.idea
/composer.lock
10 changes: 10 additions & 0 deletions bin/pharmacist
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();
10 changes: 5 additions & 5 deletions composer.json
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/"
}
}
}
275 changes: 0 additions & 275 deletions composer.lock

This file was deleted.

13 changes: 3 additions & 10 deletions src/Loggable.php
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");
}
}
}
Loading

0 comments on commit fb23c13

Please sign in to comment.