-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from fritzmg/manager-plugin
add Contao Manager Plugin
- Loading branch information
Showing
2 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']), | ||
]; | ||
} | ||
} |