Umstellung auf Contao 4 Bundle
This commit is contained in:
parent
0129999dd0
commit
f6e5678ed3
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
|
||||
;;
|
||||
; Configure what you want the autoload creator to register
|
||||
;;
|
||||
register_namespaces = true
|
||||
register_classes = true
|
||||
register_templates = true
|
@ -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
Normal file
14
src/CgoITXlsexportBundle.php
Normal file
@ -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
Normal file
28
src/ContaoManagerPlugin.php
Normal file
@ -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']),
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user