Skip to content

Commit

Permalink
.editorconfig and format
Browse files Browse the repository at this point in the history
  • Loading branch information
j0nem committed Oct 16, 2018
1 parent 5b3d983 commit a8e3f3b
Show file tree
Hide file tree
Showing 16 changed files with 359 additions and 359 deletions.
Empty file modified LICENSE
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions README.md
100644 → 100755
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.
96 changes: 48 additions & 48 deletions composer.json
100644 → 100755
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"
}
}
84 changes: 42 additions & 42 deletions src/ContaoManager/Plugin.php
100644 → 100755
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 modified src/DependencyInjection/Configuration.php
100644 → 100755
Empty file.
78 changes: 39 additions & 39 deletions src/DependencyInjection/WbgymUntisExtension.php
100644 → 100755
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 modified src/Resources/contao/classes/WUClient.php
100644 → 100755
Empty file.
Empty file modified src/Resources/contao/classes/WUHelper.php
100644 → 100755
Empty file.
Empty file modified src/Resources/contao/config/config.php
100644 → 100755
Empty file.
Empty file modified src/Resources/contao/languages/de/modules.php
100644 → 100755
Empty file.
Empty file modified src/Resources/contao/languages/de/wbuntis.php
100644 → 100755
Empty file.
Empty file modified src/Resources/contao/modules/ModuleSubstitutions.php
100644 → 100755
Empty file.
Empty file modified src/Resources/contao/modules/ModuleTimetable.php
100644 → 100755
Empty file.
Loading

0 comments on commit a8e3f3b

Please sign in to comment.