public function grabComponent($component)
    {
        try {
            return $this->client->getComponent($component);
        } catch (ConfigurationException $e) {
            throw new ModuleException($this, $e->getMessage());
        }
    }
public function grabComponent($component)
    {
        try {
            return $this->client->getComponent($component);
        } catch (ConfigurationException $e) {
            throw new ModuleException($this, $e->getMessage());
        }
    }
public function grabComponent ( $ component ) { try { return $ this -> client -> getComponent ( $ component ) ; } catch ( ConfigurationException $ e ) { throw new ModuleException ( $ this , $ e -> getMessage ( ) ) ; } }
Gets a component from Yii container. Throws exception if component is not available

```php
<?php
$mailer = $I->grabComponent('mailer');
```

@param $component
@return mixed
@throws ModuleException
@deprecated in your tests you can use \Yii::$app directly.
Gets a component from Yii container . Throws exception if component is not available