public function get(VariableWrapper $data) { /** @var $var \Symfony\Component\HttpFoundation\Request */ $var = $data->getData(); /** @var $code CodeType */ $code = $this->extendedTypeFactory->factory('code', $this->level); $code->setLanguage('http'); $code->setContent($var->__toString()); $code->setTitle('HTTP Request'); return $code; }
public function get(VariableWrapper $data) { /** @var $var \Symfony\Component\HttpFoundation\ParameterBag */ $var = $data->getData(); /** @var $collection CollectionType */ $collection = $this->extendedTypeFactory->factory('collection', $this->level); $collection->setTitle('Bag'); foreach ($var->all() as $item) { $collection->add($this->typeFactory->factory($item, $this->level + 1)); } return $collection; }
/** * @inheritdoc */ public function supports(VariableWrapper $data) { return VariableWrapper::TYPE_RESOURCE == $data->getType() && 'mysql result' === $data->getId(); }
public function supports(VariableWrapper $data) { return VariableWrapper::TYPE_CLASS === $data->getType() && $this->isNamespace($data->getId(), 'Symfony'); }
/** * @inheritdoc */ public function supports(VariableWrapper $data) { return VariableWrapper::TYPE_CLASS == $data->getType() && 'SplMinHeap' === $data->getId(); }
public function supports(VariableWrapper $data) { return VariableWrapper::TYPE_CLASS == $data->getType() && 'DOMDocument' === $data->getId(); }
/** * @inheritdoc */ public function supports(VariableWrapper $data) { return VariableWrapper::TYPE_CLASS === $data->getType() && $this->isPrefix($data->getId(), 'Twig_'); }
/** * @inheritdoc */ public function supports(VariableWrapper $data) { return 'mysql' === substr($data->getId(), 0, 5) && VariableWrapper::TYPE_RESOURCE === $data->getType(); }
/** * @inheritdoc */ public function supports(VariableWrapper $data) { return VariableWrapper::TYPE_CLASS === $data->getType() && array_key_exists($data->getId(), $this->classes); }