Browse Source

Umstellung auf Contao 4 Bundle

master
Carsten Götzinger 4 years ago
parent
commit
f6e5678ed3
  1. 40
      composer.json
  2. 7
      config/autoload.ini
  3. 28
      config/autoload.php
  4. 14
      src/CgoITXlsexportBundle.php
  5. 28
      src/ContaoManagerPlugin.php
  6. 0
      src/Resources/contao/vendor/biff.php
  7. 0
      src/Resources/contao/vendor/fat.php
  8. 0
      src/Resources/contao/vendor/font.php
  9. 0
      src/Resources/contao/vendor/mergedcells.php
  10. 0
      src/Resources/contao/vendor/palette.php
  11. 0
      src/Resources/contao/vendor/picture.php
  12. 0
      src/Resources/contao/vendor/xf.php
  13. 0
      src/Resources/contao/vendor/xls_export.php

40
composer.json

@ -1,8 +1,9 @@
{
"name":"cgo-it/xls_export",
"description":"xls_export extension for the Contao Open Source CMS",
"keywords":["contao", "excel"],
"type":"contao-module",
"name":"cgo-it/contao-xls_export-bundle",
"description":"xls_export extension for the Contao Open Source CMS as contao 4 bundle",
"keywords":["contao", "excel", "bundle"],
"type":"contao-bundle",
"homepage":"https://cgo-it.de",
"license":"GPL-3.0-or-later",
"authors":[
{
@ -13,23 +14,26 @@
}
],
"support": {
"email": "info@cgo-it.de",
"issues": "https://bitbucket.org/cgo-it/contao-xls_export/issues?status=new&status=open",
"source": "https://bitbucket.org/cgo-it/contao-xls_export/src"
"issues": "https://git.cgo-it.de/contao/xls_export/issues",
"source": "https://git.cgo-it.de/contao/xls_export.git"
},
"require":{
"php":">=5.3",
"contao/core":">=3.0||<5",
"contao-community-alliance/composer-plugin": "~2.0"
"php":">=7.0",
"contao/core-bundle": "^4.4"
},
"replace": {
"cgo-it/xls_export": "3.0.0"
"conflict": {
"contao/core": "*",
"contao/manager-plugin": "<2.0 || >=3.0",
},
"extra":{
"contao": {
"sources":{
"":"system/modules/xls_export"
}
}
"autoload": {
"psr-4": {
"cgoIT\\xlsexport\\": "src/"
},
"classmap": [
"src/Resources/contao/"
]
},
"extra": {
"contao-manager-plugin": "cgoIT\\xlsexport\\ContaoManagerPlugin"
}
}

7
config/autoload.ini

@ -1,7 +0,0 @@
;;
; Configure what you want the autoload creator to register
;;
register_namespaces = true
register_classes = true
register_templates = true

28
config/autoload.php

@ -1,28 +0,0 @@
<?php
/**
* Contao Open Source CMS
*
* Copyright (C) 2005-2012 Leo Feyer
*
* @package xls_export
* @link http://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Register the classes
*/
ClassLoader::addClasses(array
(
// Classes
'xls_bof' => 'system/modules/xls_export/vendor/biff.php',
'fat_class' => 'system/modules/xls_export/vendor/fat.php',
'xls_font' => 'system/modules/xls_export/vendor/font.php',
'xls_mergedcells' => 'system/modules/xls_export/vendor/mergedcells.php',
'xls_palette' => 'system/modules/xls_export/vendor/palette.php',
'xls_picture' => 'system/modules/xls_export/vendor/picture.php',
'xls_xf' => 'system/modules/xls_export/vendor/xf.php',
'xlsexport' => 'system/modules/xls_export/vendor/xls_export.php',
));

14
src/CgoITXlsexportBundle.php

@ -0,0 +1,14 @@
<?php
namespace cgoIT\xlsexport;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Configures the Contao aeo bundle.
*
* @author Carsten Götzinger
*/
class CgoITXlsexportBundle extends Bundle
{
}

28
src/ContaoManagerPlugin.php

@ -0,0 +1,28 @@
<?php
namespace cgoIT\xlsexport;
use Contao\CoreBundle\ContaoCoreBundle;
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
/**
* Plugin for the Contao Manager.
*
* @author Carsten Götzinger
*/
class ContaoManagerPlugin implements BundlePluginInterface
{
/**
* {@inheritdoc}
*/
public function getBundles(ParserInterface $parser)
{
return [
BundleConfig::create(CgoITXlsexportBundle::class)
->setLoadAfter([ContaoCoreBundle::class])
->setReplace(['xls_export']),
];
}
}

0
vendor/biff.php → src/Resources/contao/vendor/biff.php

0
vendor/fat.php → src/Resources/contao/vendor/fat.php

0
vendor/font.php → src/Resources/contao/vendor/font.php

0
vendor/mergedcells.php → src/Resources/contao/vendor/mergedcells.php

0
vendor/palette.php → src/Resources/contao/vendor/palette.php

0
vendor/picture.php → src/Resources/contao/vendor/picture.php

0
vendor/xf.php → src/Resources/contao/vendor/xf.php

0
vendor/xls_export.php → src/Resources/contao/vendor/xls_export.php

Loading…
Cancel
Save