public function grabService($service)
    {
        $container = $this->_getContainer();
        if (!$container->has($service)) {
            $this->fail("Service $service is not available in container");
        }
        return $container->get($service);
    }
public function grabService($service)
    {
        $container = $this->_getContainer();
        if (!$container->has($service)) {
            $this->fail("Service $service is not available in container");
        }
        return $container->get($service);
    }
public function grabService ( $ service ) { $ container = $ this -> _getContainer ( ) ; if ( ! $ container -> has ( $ service ) ) { $ this -> fail ( "Service $service is not available in container" ) ; } return $ container -> get ( $ service ) ; }
Grabs a service from Symfony DIC container.
Recommended to use for unit testing.

``` php
<?php
$em = $I->grabService('doctrine');
?>
```

@param $service
@return mixed
@part services
Grabs a service from Symfony DIC container . Recommended to use for unit testing .