Skip to content

Commit

Permalink
Merge pull request #1232 from franmomu/add_fixed_filter_loader
Browse files Browse the repository at this point in the history
Add missing fixed loader service
  • Loading branch information
dbu authored Nov 18, 2019
2 parents 074da1a + ba72aa2 commit b219ae5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Resources/config/imagine.xml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@
<tag name="liip_imagine.filter.loader" loader="resample" />
</service>

<service id="liip_imagine.filter.loader.fixed" class="Liip\ImagineBundle\Imagine\Filter\Loader\FixedFilterLoader" public="true">
<tag name="liip_imagine.filter.loader" loader="fixed" />
</service>

<!-- Data loaders -->

<service id="liip_imagine.binary.loader.prototype.filesystem" class="Liip\ImagineBundle\Binary\Loader\FileSystemLoader">
Expand Down
31 changes: 31 additions & 0 deletions Tests/Functional/Imagine/Filter/Loader/FixedFilterLoaderTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

/*
* This file is part of the `liip/LiipImagineBundle` project.
*
* (c) https://github.com/liip/LiipImagineBundle/graphs/contributors
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace Liip\ImagineBundle\Tests\Functional\Imagine\Filter\Loader;

use Liip\ImagineBundle\Imagine\Filter\Loader\FixedFilterLoader;
use Liip\ImagineBundle\Tests\Functional\AbstractWebTestCase;

/**
* @covers \Liip\ImagineBundle\Imagine\Filter\Loader\FixedFilterLoader
*/
class FixedFilterLoaderTest extends AbstractWebTestCase
{
public function testCouldBeGetFromContainerAsService(): void
{
$this->createClient();

$this->assertInstanceOf(
FixedFilterLoader::class,
self::$kernel->getContainer()->get('liip_imagine.filter.loader.fixed')
);
}
}

0 comments on commit b219ae5

Please sign in to comment.