hrevert / HtImgModule

Image manipulation module for Zend Framework
MIT License
17 stars 15 forks source link

Remove filter loader #19

Open ojhaujjwal opened 10 years ago

ojhaujjwal commented 10 years ago

Remove filter loader Make use of Zend\ServiceManager\MutableCreationOptionsInterface. For example:

namespace HtImgModule\Imagine\Filter\Factory;

use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\MutableCreationOptionsInterface;

class BackgroundFactory implements FactoryInterface, MutableCreationOptionsInterface
{
     public function setCreationOptions(array $options)
     {

     }

     public function createService(ServiceLocatorInterface $filters)
     {

     }
}

This produces BC break.

ojhaujjwal commented 7 years ago

MutableCreationOptionsInterface has been removed. Options can be passed directly through Factory now.