Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/intervention/image/src/Intervention/Image/ImageServiceProviderLeague.php
<?php

namespace Intervention\Image;

use
League\Container\ServiceProvider\AbstractServiceProvider;

class
ImageServiceProviderLeague extends AbstractServiceProvider
{
   
/**
     * @var array $config
     */
   
protected $config;

   
/**
     * @var array $provides
     */
   
protected $provides = [
       
'Intervention\Image\ImageManager'
   
];

   
/**
     * Constructor.
     *
     * @param array $config
     */
   
public function __construct($config = [])
    {
       
$this->config = $config;
    }

   
/**
     * Register the server provider.
     *
     * @return void
     */
   
public function register()
    {
       
$this->getContainer()->share('Intervention\Image\ImageManager', function () {
            return new
ImageManager($this->config);
        });
    }
}