Skip to content

Commit

Permalink
git rename Csv to CSV (all uppercase). Fixed doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Shankar Manamalkav committed Dec 1, 2013
1 parent 70df999 commit 818fb41
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"autoload": {
"psr-0": {
"mnshankar\\Csv": "src/"
"mnshankar\\CSV": "src/"
}
},
"minimum-stability": "dev"
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ using a succint and readable syntax popularised by Laravel 4.
Add this line to your composer.json file in the `require field:

```json
"mnshankar/csv": "dev-master"
"mnshankar/CSV": "dev-master"
```

Then open `app/config/app.php` and add the following line in the `providers` array:

```php
'providers' => array(
'mnshankar\csv\CsvServiceProvider',
'mnshankar\CSV\CSVServiceProvider',
)
```
and the following in the 'alias' array

```php
'alias' => array(
'CSV' =>'mnshankar\Csv\CSVFacade',
'CSV' =>'mnshankar\CSV\CSVFacade',
)
```
Now, in your application you can work with CSV files like so:
Expand Down
2 changes: 1 addition & 1 deletion src/Mnshankar/Csv/CSV.php → src/mnshankar/CSV/CSV.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace mnshankar\Csv;
namespace mnshankar\CSV;

class CSV
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace mnshankar\Csv;
namespace mnshankar\CSV;
use Illuminate\Support\Facades\Facade;
class CSVFacade extends Facade
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php namespace mnshankar\Csv;
<?php namespace mnshankar\CSV;

use Illuminate\Support\ServiceProvider;

class CsvServiceProvider extends ServiceProvider {
class CSVServiceProvider extends ServiceProvider {

/**
* Indicates if loading of the provider is deferred.
Expand All @@ -18,7 +18,7 @@ class CsvServiceProvider extends ServiceProvider {
*/
public function register()
{
$this->package('mnshankar/csv');
$this->package('mnshankar/CSV');
$this->app['csv'] = $this->app->share(function(){
return new CSV();
});
Expand Down
2 changes: 1 addition & 1 deletion tests/CSVTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mnshankar\Csv;
namespace mnshankar\CSV;

class CSVTest extends \PHPUnit_Framework_TestCase
{
Expand Down

0 comments on commit 818fb41

Please sign in to comment.