-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
359 additions
and
359 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Untis Bundle | ||
|
||
# Untis Bundle | ||
|
||
Provides a client for the WebUntis services. |
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 |
---|---|---|
@@ -1,48 +1,48 @@ | ||
{ | ||
"name": "wbgym/untis-bundle", | ||
"type": "contao-bundle", | ||
"description": "Provides a Contao-client for the WebUntis services.", | ||
"license": "GPL-3.0+", | ||
"authors": [ | ||
{ | ||
"name": "Webteam WBGym", | ||
"homepage": "https://wbgym.de" | ||
} | ||
], | ||
"require": { | ||
"php": "^5.6|^7.0", | ||
"symfony/framework-bundle": "^3.3", | ||
"contao/core-bundle": "^4.4", | ||
"wbgym/school-bundle": "^1.0" | ||
}, | ||
"require-dev": { | ||
"contao/manager-plugin": "^2.0" | ||
}, | ||
"conflict": { | ||
"contao/core": "*", | ||
"contao/manager-plugin": "<2.0 || >=3.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Wbgym\\UntisBundle\\": "src/" | ||
}, | ||
"classmap": [ | ||
"src/Resources/contao/" | ||
], | ||
"exclude-from-classmap": [ | ||
"src/Resources/contao/config/", | ||
"src/Resources/contao/dca/", | ||
"src/Resources/contao/languages/", | ||
"src/Resources/contao/templates/" | ||
] | ||
}, | ||
"config": { | ||
"preferred-install": "dist" | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0.x-dev" | ||
}, | ||
"contao-manager-plugin": "Wbgym\\UntisBundle\\ContaoManager\\Plugin" | ||
} | ||
} | ||
{ | ||
"name": "wbgym/untis-bundle", | ||
"type": "contao-bundle", | ||
"description": "Provides a Contao-client for the WebUntis services.", | ||
"license": "GPL-3.0+", | ||
"authors": [ | ||
{ | ||
"name": "Webteam WBGym", | ||
"homepage": "https://wbgym.de" | ||
} | ||
], | ||
"require": { | ||
"php": "^5.6|^7.0", | ||
"symfony/framework-bundle": "^3.3", | ||
"contao/core-bundle": "^4.4", | ||
"wbgym/school-bundle": "^1.0" | ||
}, | ||
"require-dev": { | ||
"contao/manager-plugin": "^2.0" | ||
}, | ||
"conflict": { | ||
"contao/core": "*", | ||
"contao/manager-plugin": "<2.0 || >=3.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Wbgym\\UntisBundle\\": "src/" | ||
}, | ||
"classmap": [ | ||
"src/Resources/contao/" | ||
], | ||
"exclude-from-classmap": [ | ||
"src/Resources/contao/config/", | ||
"src/Resources/contao/dca/", | ||
"src/Resources/contao/languages/", | ||
"src/Resources/contao/templates/" | ||
] | ||
}, | ||
"config": { | ||
"preferred-install": "dist" | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0.x-dev" | ||
}, | ||
"contao-manager-plugin": "Wbgym\\UntisBundle\\ContaoManager\\Plugin" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,43 +1,43 @@ | ||
<?php | ||
|
||
/** | ||
* Contao Open Source CMS | ||
* | ||
* Copyright (c) 2005-2016 Leo Feyer | ||
* | ||
* @license LGPL-3.0+ | ||
*/ | ||
|
||
/** | ||
* Wbgym/UntisBundle | ||
* | ||
* @author Webteam WBGym <webteam@wbgym.de> | ||
* @package Untis Bundle | ||
* @license LGPL-3.0+ | ||
*/ | ||
|
||
namespace Wbgym\UntisBundle\ContaoManager; | ||
|
||
use Contao\CoreBundle\ContaoCoreBundle; | ||
use Wbgym\UntisBundle\WbgymUntisBundle; | ||
use Contao\ManagerPlugin\Bundle\BundlePluginInterface; | ||
use Contao\ManagerPlugin\Bundle\Config\BundleConfig; | ||
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface; | ||
|
||
/** | ||
* Plugin for the Contao Manager. | ||
*/ | ||
class Plugin implements BundlePluginInterface | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getBundles(ParserInterface $parser) | ||
{ | ||
return [ | ||
BundleConfig::create(WbgymUntisBundle::class) | ||
->setLoadAfter([ContaoCoreBundle::class]) | ||
->setReplace(['untis']) | ||
]; | ||
} | ||
<?php | ||
|
||
/** | ||
* Contao Open Source CMS | ||
* | ||
* Copyright (c) 2005-2016 Leo Feyer | ||
* | ||
* @license LGPL-3.0+ | ||
*/ | ||
|
||
/** | ||
* Wbgym/UntisBundle | ||
* | ||
* @author Webteam WBGym <webteam@wbgym.de> | ||
* @package Untis Bundle | ||
* @license LGPL-3.0+ | ||
*/ | ||
|
||
namespace Wbgym\UntisBundle\ContaoManager; | ||
|
||
use Contao\CoreBundle\ContaoCoreBundle; | ||
use Wbgym\UntisBundle\WbgymUntisBundle; | ||
use Contao\ManagerPlugin\Bundle\BundlePluginInterface; | ||
use Contao\ManagerPlugin\Bundle\Config\BundleConfig; | ||
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface; | ||
|
||
/** | ||
* Plugin for the Contao Manager. | ||
*/ | ||
class Plugin implements BundlePluginInterface | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getBundles(ParserInterface $parser) | ||
{ | ||
return [ | ||
BundleConfig::create(WbgymUntisBundle::class) | ||
->setLoadAfter([ContaoCoreBundle::class]) | ||
->setReplace(['untis']) | ||
]; | ||
} | ||
} |
Empty file.
78 changes: 39 additions & 39 deletions
78
src/DependencyInjection/WbgymUntisExtension.php
100644 → 100755
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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
<?php | ||
/** | ||
* Contao Open Source CMS | ||
* | ||
* Copyright (c) 2005-2016 Leo Feyer | ||
* | ||
* @license LGPL-3.0+ | ||
*/ | ||
|
||
/** | ||
* Wbgym/UntisBundle | ||
* | ||
* @author Webteam WBGym <webteam@wbgym.de> | ||
* @package Untis Bundle | ||
* @license LGPL-3.0+ | ||
*/ | ||
|
||
namespace Wbgym\UntisBundle\DependencyInjection; | ||
|
||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Extension\Extension; | ||
|
||
class WbgymUntisExtension extends Extension | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function load(array $mergedConfig, ContainerBuilder $container) | ||
{ | ||
$config = new Configuration(); | ||
$processedConfig = $this->processConfiguration($config, $mergedConfig); | ||
|
||
//Add parameters to Configuration | ||
$container->setParameter('wbgym_untis.api_url',$processedConfig['api_url']); | ||
$container->setParameter('wbgym_untis.school_code',$processedConfig['school_code']); | ||
$container->setParameter('wbgym_untis.username',$processedConfig['username']); | ||
$container->setParameter('wbgym_untis.password',$processedConfig['password']); | ||
$container->setParameter('wbgym_untis.client_name',$processedConfig['client_name']); | ||
} | ||
<?php | ||
/** | ||
* Contao Open Source CMS | ||
* | ||
* Copyright (c) 2005-2016 Leo Feyer | ||
* | ||
* @license LGPL-3.0+ | ||
*/ | ||
|
||
/** | ||
* Wbgym/UntisBundle | ||
* | ||
* @author Webteam WBGym <webteam@wbgym.de> | ||
* @package Untis Bundle | ||
* @license LGPL-3.0+ | ||
*/ | ||
|
||
namespace Wbgym\UntisBundle\DependencyInjection; | ||
|
||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Extension\Extension; | ||
|
||
class WbgymUntisExtension extends Extension | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function load(array $mergedConfig, ContainerBuilder $container) | ||
{ | ||
$config = new Configuration(); | ||
$processedConfig = $this->processConfiguration($config, $mergedConfig); | ||
|
||
//Add parameters to Configuration | ||
$container->setParameter('wbgym_untis.api_url',$processedConfig['api_url']); | ||
$container->setParameter('wbgym_untis.school_code',$processedConfig['school_code']); | ||
$container->setParameter('wbgym_untis.username',$processedConfig['username']); | ||
$container->setParameter('wbgym_untis.password',$processedConfig['password']); | ||
$container->setParameter('wbgym_untis.client_name',$processedConfig['client_name']); | ||
} | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.