1: <?php
2:
3: namespace Mapbender\PrintBundle\Controller;
4:
5: use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6: use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
7: use Symfony\Component\HttpFoundation\Response;
8: use Mapbender\PrintBundle\Component\PrintService;
9:
10:
11: class PrintController extends Controller
12: {
13: 14: 15: 16: 17:
18: public function serviceAction()
19: {
20: $content = $this->get('request')->getContent();
21: $container = $this->container;
22: $printservice = new PrintService($container);
23: $printservice->doPrint($content);
24: return new Response('');
25: }
26:
27: }
28: