Skip to content

Commit

Permalink
Merge pull request #3 from fritzmg/manager-plugin
Browse files Browse the repository at this point in the history
add Contao Manager Plugin
  • Loading branch information
iCodr8 authored Aug 7, 2017
2 parents 34b192d + db205af commit 0158770
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
"php": ">=5.4.0",
"contao/core-bundle": "~4.1"
},
"require-dev": {
"contao/manager-plugin": "^2.0"
},
"conflict": {
"contao/core": "*"
"contao/core": "*",
"contao/manager-plugin": "<2.0 || >=3.0"
},
"autoload": {
"psr-4": {
Expand All @@ -29,6 +33,7 @@
"extra": {
"branch-alias": {
"dev-develop": "4.2.x-dev"
}
},
"contao-manager-plugin": "Craffft\\CssStyleSelectorBundle\\ContaoManager\\Plugin"
}
}
36 changes: 36 additions & 0 deletions src/ContaoManager/Plugin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

/*
* This file is part of the CssStyleSelector Bundle.
*
* (c) Daniel Kiesel <https://github.com/iCodr8>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Craffft\CssStyleSelectorBundle\ContaoManager;

use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;

/**
* Plugin for the Contao Manager.
*
* @author Fritz Michael Gschwantner <[email protected]>
*/
class Plugin implements BundlePluginInterface
{
/**
* {@inheritdoc}
*/
public function getBundles(ParserInterface $parser)
{
return [
BundleConfig::create('Craffft\CssStyleSelectorBundle\CraffftCssStyleSelectorBundle')
->setLoadAfter(['Contao\CoreBundle\ContaoCoreBundle'])
->setReplace(['css-style-selector']),
];
}
}

0 comments on commit 0158770

Please sign in to comment.