Skip to content

Commit

Permalink
Move Decorators as part of resource handlers package.
Browse files Browse the repository at this point in the history
  • Loading branch information
spalax committed Jul 28, 2013
1 parent 80c86ee commit 0ff287a
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions config/module/di.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
)
),

'Zf2FileUploader\Resource\Decorator\Image\AggregateDecorator' => array(
'Zf2FileUploader\Resource\Handler\Decorator\Image\AggregateDecorator' => array(
'addDecorator' => array(
array('type' => 'Zf2FileUploader\Resource\Decorator\ImageDecoratorInterface',
array('type' => 'Zf2FileUploader\Resource\Handler\Decorator\ImageDecoratorInterface',
'required' => true)
)
)
Expand Down Expand Up @@ -68,7 +68,7 @@

'Zf2FileUploader\Service\Resource\Image\DecorateService' => array(
'parameters' => array(
'decorator' => 'Zf2FileUploader\Resource\Decorator\Image\AggregateDecorator'
'decorator' => 'Zf2FileUploader\Resource\Handler\Decorator\Image\AggregateDecorator'
)
),

Expand Down
4 changes: 0 additions & 4 deletions src/Zf2FileUploader/Resource/Decorator/DecoratorInterface.php

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
namespace Zf2FileUploader\Resource\Handler\Decorator;

interface DecoratorInterface {}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Zf2FileUploader\Resource\Decorator\Exception;
namespace Zf2FileUploader\Resource\Handler\Decorator\Exception;

use Zf2FileUploader\Exception\ExceptionInterface;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Zf2FileUploader\Resource\Decorator\Image;
namespace Zf2FileUploader\Resource\Handler\Decorator\Image;

use Zf2FileUploader\Resource\Decorator\ImageDecoratorInterface;
use Zf2FileUploader\Resource\Handler\Decorator\ImageDecoratorInterface;
use Zf2FileUploader\Resource\ImageResourceInterface;

class AggregateDecorator implements ImageDecoratorInterface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
namespace Zf2FileUploader\Resource\Decorator\Image;
namespace Zf2FileUploader\Resource\Handler\Decorator\Image;

use Zf2FileUploader\Options\Resource\Decorator\ResizerOptionsInterface;
use Zf2FileUploader\Resource\Decorator\Exception\DomainException;
use Zf2FileUploader\Resource\Handler\Decorator\Exception\DomainException;
use Imagine\Image\Box;
use Imagine\Image\ImageInterface as ImagineImageInterface;
use Imagine\Gd\Imagine;
use Zf2FileUploader\Resource\Decorator\ImageDecoratorInterface;
use Zf2FileUploader\Resource\Handler\Decorator\ImageDecoratorInterface;
use Zf2FileUploader\Resource\ImageResourceInterface;

class Resizer implements ImageDecoratorInterface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
namespace Zf2FileUploader\Resource\Decorator\Image;
namespace Zf2FileUploader\Resource\Handler\Decorator\Image;

use Zf2FileUploader\Options\Resource\Decorator\ThumbnailerOptionsInterface;
use Zf2FileUploader\Resource\Decorator\Exception\DomainException;
use Zf2FileUploader\Resource\Handler\Decorator\Exception\DomainException;
use Imagine\Image\Box;
use Imagine\Image\ImageInterface as ImagineImageInterface;
use Imagine\Gd\Imagine;
use Zf2FileUploader\Resource\Decorator\ImageDecoratorInterface;
use Zf2FileUploader\Resource\Handler\Decorator\ImageDecoratorInterface;
use Zf2FileUploader\Resource\ImageResourceInterface;

class Thumbnailer implements ImageDecoratorInterface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Zf2FileUploader\Resource\Decorator;
namespace Zf2FileUploader\Resource\Handler\Decorator;

use Zf2FileUploader\Resource\ImageResourceInterface;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace Zf2FileUploader\Service\Resource\Image;

use Zf2FileUploader\I18n\Translator\TranslatorInterface;
use Zf2FileUploader\Resource\Decorator\ImageDecoratorInterface;
use Zf2FileUploader\Resource\Handler\Decorator\ImageDecoratorInterface;
use Zf2FileUploader\Resource\ImageResourceInterface;
use Zf2FileUploader\Service\Resource\Response\ImageResponse;
use Zf2FileUploader\Service\Resource\Response\ImageResponseInterface;
Expand Down

0 comments on commit 0ff287a

Please sign in to comment.