Skip to content

Commit

Permalink
Add support the markup mode and fixture helpers.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilov committed Feb 3, 2017
1 parent bd643c1 commit 458b781
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Provider/CompositeObjectServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Glavweb\SilexCmsCompositeObject\Provider;

use Glavweb\CmsCompositeObject\Helper\MarkupFixtureHelper;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Glavweb\CmsCompositeObject\Service\CompositeObjectService;
Expand All @@ -29,8 +30,13 @@ class CompositeObjectServiceProvider implements ServiceProviderInterface
public function register(Container $app)
{
$app['composite_object_service'] = function () use ($app) {
$markupFixtureHelper = new MarkupFixtureHelper($app['base_path']);

return new CompositeObjectService(
$app['cms_rest_client']
$app['cms_rest_client'],
$markupFixtureHelper,
$app['markup_mode'],
$app['fixture_objects']
);
};
}
Expand Down

0 comments on commit 458b781

Please sign in to comment.