Source of file ServiceProvider.php

Size: 0,511 Bytes - Last Modified: 2016-05-18T03:08:26+02:00

buildproject/core/module_packagemanager/system/ServiceProvider.php

1234567891011121314151617181920212223242526
<?php

namespace Kajona\Packagemanager\System;

use Pimple\Container;
use Pimple\ServiceProviderInterface;


/**
 * ServiceProvider
 *
 * @author sidler@mulchprod.de
 * @since 4.6
 */
class ServiceProvider implements ServiceProviderInterface
{
    const STR_PHARGENERATOR = "packagemanager_phargenerator";

    public function register(Container $objContainer)
    {
        $objContainer[self::STR_PHARGENERATOR] = function ($c) {
            return new PackagemanagerPharModuleGenerator();
        };
    }
}