Verified Commit 54593518 authored by Elias Häußler's avatar Elias Häußler 🐛

[TASK] Switch from MIT license to GNU GPL v3.0 and adapt author's email

parent 6a884911
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
define("CLASSES_PATH", 'src/classes');
define("SOURCE_PATH", __DIR__ . '/' . CLASSES_PATH);
......
......@@ -6,7 +6,9 @@ Version numbers are based on [Semantic Versioning](https://semver.org).
## [Unreleased]
### Updated
- Switch from MIT License to [GNU General Public License v3.0](LICENSE)
......
This diff is collapsed.
MIT License
Copyright (c) 2019 Elias Häußler
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
......@@ -253,4 +253,4 @@ to remove old logs and clear disk space as the log files might exceed in its siz
## License
[MIT License](LICENSE.md)
[GNU General Public License v3.0](LICENSE)
......@@ -2,11 +2,13 @@
"name": "eliashaeussler/api",
"description": "API for projects of Elias Häußler",
"type": "library",
"license": "GPL-2.0+",
"license": "GPL-3.0+",
"authors": [
{
"name": "Elias Häußler",
"email": "mail@elias-haeussler.de"
"email": "elias@haeussler.dev",
"homepage": "https://haeussler.dev",
"role": "Developer"
}
],
"require": {
......
#!/usr/bin/env php
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
......
/*
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
@font-face {
......
/*
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
body {
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Command;
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
use EliasHaeussler\Api\Helpers\ExtendedStyle;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
......@@ -13,8 +25,8 @@ use Symfony\Component\Console\Output\OutputInterface;
/**
* Base Symfony console command.
*
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
abstract class BaseCommand extends Command
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Command;
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
use EliasHaeussler\Api\Exception\ClassNotFoundException;
use EliasHaeussler\Api\Service\ConnectionService;
use EliasHaeussler\Api\Utility\GeneralUtility;
......@@ -17,8 +29,8 @@ use Symfony\Component\Console\Output\OutputInterface;
*
* This command makes it possible to export the database.
*
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class DatabaseExportCommand extends BaseCommand
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Command;
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
use Doctrine\DBAL\DBALException;
use EliasHaeussler\Api\Exception\ClassNotFoundException;
use EliasHaeussler\Api\Exception\DatabaseException;
......@@ -22,8 +34,8 @@ use Symfony\Component\Console\Output\OutputInterface;
*
* This command makes it possible to run several actions according database migration.
*
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class DatabaseMigrateCommand extends BaseCommand
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Command;
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\Table;
......@@ -23,8 +35,8 @@ use Symfony\Component\Console\Output\OutputInterface;
*
* This command makes it possible to run several actions according database schema.
*
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class DatabaseSchemaCommand extends BaseCommand
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Command;
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
use EliasHaeussler\Api\Service\LogService;
use EliasHaeussler\Api\Utility\LocalizationUtility;
use Symfony\Component\Console\Input\InputInterface;
......@@ -16,8 +28,8 @@ use Symfony\Component\Console\Output\OutputInterface;
*
* This command allows removing old log files.
*
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class LogfileClearCommand extends BaseCommand
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Controller;
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
use EliasHaeussler\Api\Exception\ClassNotFoundException;
use EliasHaeussler\Api\Exception\InvalidParameterException;
use EliasHaeussler\Api\Exception\NoMappingDefinedException;
......@@ -17,8 +29,8 @@ use EliasHaeussler\Api\Utility\LocalizationUtility;
/**
* Base API controller.
*
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
abstract class BaseController
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Controller;
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
use Doctrine\DBAL\Connection;
use EliasHaeussler\Api\Exception\AuthenticationException;
use EliasHaeussler\Api\Exception\ClassNotFoundException;
......@@ -30,8 +42,8 @@ use EliasHaeussler\Api\Utility\LocalizationUtility;
* This API controller converts API requests to valid requests for the Slack API and processes them. Each available
* route is mapped to an appropriate routing class which should be an instance of {@see BaseRoute} class.
*
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class SlackController extends BaseController
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Controller;
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
use EliasHaeussler\Api\Utility\GeneralUtility;
/**
......@@ -13,8 +25,8 @@ use EliasHaeussler\Api\Utility\GeneralUtility;
* This trait can be used to load the user environment for a specific API controller. When using it, the environment
* will be initialized right before the request is handled.
*
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
trait UserEnvironmentRequired
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Exception;
/**
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/**
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class AuthenticationException extends \Exception
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Exception;
/**
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/**
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class ClassNotFoundException extends \Exception
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Exception;
/**
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/**
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class DatabaseException extends \Exception
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Exception;
/**
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/**
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class EmptyControllerException extends \Exception
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Exception;
/**
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/**
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class EmptyParametersException extends \Exception
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Exception;
/**
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/**
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class FileNotFoundException extends \Exception
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Exception;
/**
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/**
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class InvalidControllerException extends \Exception
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Exception;
/**
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/**
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0+
*/
class InvalidEnvironmentException extends \Exception
{
......
<?php
/**
* Copyright (c) 2019 Elias Häußler <mail@elias-haeussler.de>. All rights reserved.
* Copyright (c) 2019 Elias Häußler <elias@haeussler.dev>. All rights reserved.
*/
declare(strict_types=1);
namespace EliasHaeussler\Api\Exception;
/**
* @author Elias Häußler <mail@elias-haeussler.de>
* @license MIT
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of