Skip to content

Commit

Permalink
Drop ..\Services\.. namespace as it breaks support for Config::get etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mulkave committed Jun 8, 2013
1 parent 98c200b commit 9cb8df9
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -7,9 +7,9 @@ Handles server-to-server connections.
## Installation
Refer to [vinelab/http on packagist.org](https://packagist.org/packages/vinelab/http) for composer installation instructions.

Edit **app.php** and add ```'Vinelab\Services\Http\HttpServiceProvider',``` to the ```'providers'``` array.
Edit **app.php** and add ```'Vinelab\Http\HttpServiceProvider',``` to the ```'providers'``` array.

It will automatically alias itself as **HttClient** so no need to aslias it in your **app.php** unless you would like to customize it. In that case edit your **'aliases'** in **app.php** adding ``` 'MyHttp' => 'Vinelab\Services\Http\Facades\Client',```
It will automatically alias itself as **HttClient** so no need to aslias it in your **app.php** unless you would like to customize it. In that case edit your **'aliases'** in **app.php** adding ``` 'MyHttp' => 'Vinelab\Http\Facades\Client',```

## Usage

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -22,7 +22,7 @@
"autoload": {

"psr-0": {
"Vinelab\\Services\\Http": "src/"
"Vinelab\\Http": "src/"
}
},
"minimum-stability": "dev"
Expand Down
@@ -1,4 +1,4 @@
<?php namespace Vinelab\Services\Http;
<?php namespace Vinelab\Http;

Class Client {

Expand Down
@@ -1,4 +1,4 @@
<?php namespace Vinelab\Services\Http\Contracts;
<?php namespace Vinelab\Http\Contracts;

/**
* A HTTP Client
Expand Down
@@ -1,4 +1,4 @@
<?php namespace Vinelab\Services\Http\Contracts;
<?php namespace Vinelab\Http\Contracts;

/**
* Http Response returned from {@see HttpClientInterface::request}.
Expand Down
@@ -1,4 +1,4 @@
<?php namespace Vinelab\Services\Http\Facades;
<?php namespace Vinelab\Http\Facades;

use Illuminate\Support\Facades\Facade;

Expand Down
@@ -1,4 +1,4 @@
<?php namespace Vinelab\Services\Http;
<?php namespace Vinelab\Http;

use Illuminate\Support\ServiceProvider;

Expand Down
@@ -1,6 +1,6 @@
<?php namespace Vinelab\Services\Http;
<?php namespace Vinelab\Http;

use Vinelab\Services\Http\Contracts\RequestInterface;
use Vinelab\Http\Contracts\RequestInterface;

Class Request implements RequestInterface{

Expand Down
@@ -1,6 +1,6 @@
<?php namespace Vinelab\Services\Http;
<?php namespace Vinelab\Http;

use Vinelab\Services\Http\Contracts\ResponseInterface;
use Vinelab\Http\Contracts\ResponseInterface;

Class Response implements ResponseInterface {

Expand Down
2 changes: 1 addition & 1 deletion tests/ClientTest.php
@@ -1,6 +1,6 @@
<?php

use Vinelab\Services\Http\Client;
use Vinelab\Http\Client;
use Mockery as M;

Class ClientTest extends PHPUnit_Framework_TestCase {
Expand Down

0 comments on commit 9cb8df9

Please sign in to comment.