Skip to content

Commit

Permalink
updated to Symfony2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
liuggio committed Jun 26, 2012
1 parent fff27c5 commit b1eb8dd
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 43 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
@@ -1,6 +1,6 @@
<?php

namespace liuggio\ExcelBundle\DependencyInjection;
namespace Liuggio\ExcelBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
Expand Down
@@ -1,6 +1,6 @@
<?php

namespace liuggio\ExcelBundle\DependencyInjection;
namespace Liuggio\ExcelBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
Expand All @@ -12,7 +12,7 @@
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
*/
class liuggioExcelExtension extends Extension
class LiuggioExcelExtension extends Extension
{
/**
* {@inheritDoc}
Expand Down
9 changes: 9 additions & 0 deletions LiuggioExcelBundle.php
@@ -0,0 +1,9 @@
<?php

namespace Liuggio\ExcelBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

class LiuggioExcelBundle extends Bundle
{
}
17 changes: 3 additions & 14 deletions README.md
Expand Up @@ -24,7 +24,7 @@ you have to know that csv is pretty faster so I encourage you to use the built-i
1 Add to composer.json to the `require` key

```
"liuggio/excelbundle": "dev-master",
"liuggio/excel-bundle": "dev-master",
```

and add the repositories:
Expand Down Expand Up @@ -72,22 +72,11 @@ and add the repositories:
``` php
$bundles = array(
// ...
new liuggio\ExcelBundle\liuggioExcelBundle(),
new Liuggio\ExcelBundle\LiuggioExcelBundle(),
);
```


3 Register the prefix for the library into the autoload.php

``` php
$loader->registerPrefixes(array(
'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
'Twig_' => __DIR__.'/../vendor/twig/lib',
// ...
'PHPExcel' => __DIR__.'/../vendor/phpexcel/lib/PHPExcel/Classes',
));
```


## AVAILABLE SERVICES

Expand Down Expand Up @@ -171,7 +160,7 @@ class DefaultController extends Controller

## ADVANCED USE

if you need see and modify ``liuggio\ExcelBundle\Resources\config\services.yml``
if you need see and modify ``Liuggio\ExcelBundle\Resources\config\services.yml``


## Contributors
Expand Down
2 changes: 1 addition & 1 deletion Resources/config/services.yml
Expand Up @@ -7,7 +7,7 @@ parameters:
xls.factory2007.method: "PHPExcel_Writer_Excel2007"
xls.factoryPDF.method: "PHPExcel_Writer_PDF"
xls.factory.write_method: "save"
xls.service.class: liuggio\ExcelBundle\Service\ExcelContainer
xls.service.class: Liuggio\ExcelBundle\Service\ExcelContainer

services:
xls.phpexcel:
Expand Down
16 changes: 8 additions & 8 deletions Resources/doc/index.rst
Expand Up @@ -24,24 +24,24 @@ With PHPExcel you can create: xls, ods, pdf and more.

``` yaml
[n3bStreamresponse]
git=https://github.com/liuggio/Symfony2-StreamResponse.git
git=https://github.com/Liuggio/Symfony2-StreamResponse.git
target=n3b/src/n3b/Bundle/Util/HttpFoundation/StreamResponse
[phpExcel]
git=https://github.com/liuggio/PHPExcel.git
git=https://github.com/Liuggio/PHPExcel.git
target=phpexcel
[liuggioExcelBundle]
git=http://github.com/liuggio/ExcelBundle.git
target=/bundles/liuggio/ExcelBundle
[LiuggioExcelBundle]
git=http://github.com/Liuggio/ExcelBundle.git
target=/bundles/Liuggio/ExcelBundle
```

2 Register the bundle in ``app/AppKernel.php``

``` php
$bundles = array(
// ...
new liuggio\ExcelBundle\liuggioExcelBundle(),
new Liuggio\ExcelBundle\LiuggioExcelBundle(),
);
```

Expand All @@ -52,7 +52,7 @@ With PHPExcel you can create: xls, ods, pdf and more.
// ...
'n3b\\Bundle\\Util\\HttpFoundation\\StreamResponse' => __DIR__.'/../vendor/n3b/src',
'liuggio' => __DIR__.'/../vendor/bundles',
'Liuggio' => __DIR__.'/../vendor/bundles',
));
```

Expand Down Expand Up @@ -152,7 +152,7 @@ class DefaultController extends Controller

## ADVANCED USE

if you need see and modify ``liuggio\ExcelBundle\Resources\config\services.yml``
if you need see and modify ``Liuggio\ExcelBundle\Resources\config\services.yml``


## Contributors
Expand Down
2 changes: 1 addition & 1 deletion Service/ExcelContainer.php
@@ -1,6 +1,6 @@
<?php

namespace liuggio\ExcelBundle\Service;
namespace Liuggio\ExcelBundle\Service;

/**
*
Expand Down
13 changes: 6 additions & 7 deletions composer.json
@@ -1,14 +1,14 @@
{
"name": "liuggio/ExcelBundle",
"name": "liuggio/excel-bundle",
"description": "This is a Symfony2 Bundle helps you to read and write Excel files (including pdf, xlsx, odt), thanks to the PHPExcel library",
"authors": [
{
"name": "Giulio De Donato",
"email": "liuggio@gmail.com"
"email": "Liuggio@gmail.com"
},
{
"name": "ExcelBundle Contributors",
"homepage": "https://github.com/liuggio/ExcelBundle#contributors"
"homepage": "https://github.com/Liuggio/ExcelBundle#contributors"
}
],
"keywords": ["xls","Excel", "symfony2", "bundle"],
Expand All @@ -28,7 +28,7 @@
"autoload": {
"psr-0": { "n3b\\Bundle\\Util\\HttpFoundation\\StreamResponse": "n3b/src" }
},
"target-dir": "n3b/src/n3b/Bundle/Util/HttpFoundation/StreamResponse"
"target-dir": "n3b/src/n3b/Bundle/UtilL/HttpFoundation/StreamResponse"
}
},
"phpExcel": {
Expand Down Expand Up @@ -56,8 +56,7 @@

"autoload": {
"psr-0": {
"liuggio\\ExcelBundle": ""
"Liuggio\\ExcelBundle": ""
}
},
"target-dir": "bundles/Liuggio/ExcelBundle"
}
}
9 changes: 0 additions & 9 deletions liuggioExcelBundle.php

This file was deleted.

0 comments on commit b1eb8dd

Please sign in to comment.