AsgardCms/Media

View on GitHub
Image/Intervention/InterventionFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Modules\Media\Image\Intervention;

use Modules\Media\Image\ImageFactoryInterface;

class InterventionFactory implements ImageFactoryInterface
{
    /**
     * @param  string                                     $manipulation
     * @return \Modules\Media\Image\ImageHandlerInterface
     */
    public function make($manipulation)
    {
        $class = 'Modules\\Media\\Image\\Intervention\\Manipulations\\' . ucfirst($manipulation);

        return new $class();
    }
}