for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Storgman - Student Organizations Management
* Copyright (C) 2014-2016, Dejan Angelov <[email protected]>
*
* This file is part of Storgman.
* Storgman 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.
* Storgman 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.
* You should have received a copy of the GNU General Public License
* along with Storgman. If not, see <http://www.gnu.org/licenses/>.
* @package Storgman
* @copyright Copyright (C) 2014-2016, Dejan Angelov <[email protected]>
* @license https://github.com/angelov/storgman/blob/master/LICENSE
* @author Dejan Angelov <[email protected]>
*/
namespace Angelov\Storgman\Meetings\Attachments\Packaging;
use Illuminate\Support\ServiceProvider;
class PackagingManagerServiceProvider extends ServiceProvider
{
public function register()
$this->app->singleton(PackagingManager::class, function ($app) {
$app
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$manager = new PackagingManager();
$manager->addPacker(new ZipAttachmentsPacker());
return $manager;
});
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.