Skip to content
Browse files

updated to Symfony2.1

  • Loading branch information...
1 parent fff27c5 commit b1eb8ddc200daf1c18745c7d9542ed5437ed75fa @liuggio committed Jun 26, 2012
View
2 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;
View
4 ...ndencyInjection/liuggioExcelExtension.php → ...ndencyInjection/LiuggioExcelExtension.php
@@ -1,6 +1,6 @@
<?php
-namespace liuggio\ExcelBundle\DependencyInjection;
+namespace Liuggio\ExcelBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
@@ -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}
View
9 LiuggioExcelBundle.php
@@ -0,0 +1,9 @@
+<?php
+
+namespace Liuggio\ExcelBundle;
+
+use Symfony\Component\HttpKernel\Bundle\Bundle;
+
+class LiuggioExcelBundle extends Bundle
+{
+}
View
17 README.md
@@ -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:
@@ -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
@@ -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
View
2 Resources/config/services.yml
@@ -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:
View
16 Resources/doc/index.rst
@@ -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(),
);
```
@@ -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',
));
```
@@ -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
View
2 Service/ExcelContainer.php
@@ -1,6 +1,6 @@
<?php
-namespace liuggio\ExcelBundle\Service;
+namespace Liuggio\ExcelBundle\Service;
/**
*
View
13 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"],
@@ -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": {
@@ -56,8 +56,7 @@
"autoload": {
"psr-0": {
- "liuggio\\ExcelBundle": ""
+ "Liuggio\\ExcelBundle": ""
}
- },
- "target-dir": "bundles/Liuggio/ExcelBundle"
+ }
}
View
9 liuggioExcelBundle.php
@@ -1,9 +0,0 @@
-<?php
-
-namespace liuggio\ExcelBundle;
-
-use Symfony\Component\HttpKernel\Bundle\Bundle;
-
-class liuggioExcelBundle extends Bundle
-{
-}

0 comments on commit b1eb8dd

Please sign in to comment.
Something went wrong with that request. Please try again.