DumperPrefixCollection::addPrefixRoute()

DumperPrefixCollection addPrefixRoute(DumperRoute $route) Adds a route in the tree. Parameters DumperRoute $route The route Return Value DumperPrefixCollection The node the route was added to Exceptions LogicException

DumperPrefixCollection

class DumperPrefixCollection extends DumperCollection Prefix tree of routes preserving routes order. Methods (DumperCollection|DumperRoute)[] all() Returns the children routes and collections. from DumperCollection add(DumperRoute|DumperCollection $child) Adds a route or collection. from DumperCollection setAll(array $children) Sets children. from DumperCollection Iterator getIterator() Returns an iterator over the children. from DumperCollection DumperCollection getRoot(

DumperInterface::enterHash()

enterHash(Cursor $cursor, int $type, string $class, bool $hasChild) Dumps while entering an hash. Parameters Cursor $cursor The Cursor position in the dump int $type A Cursor::HASH_* const for the type of hash string $class The object class, resource type or array count bool $hasChild When the dump of the hash has child item

DumperInterface::getProxyCode()

string getProxyCode(Definition $definition) Generates the code for the lazy proxy. Parameters Definition $definition Return Value string

DumperInterface::leaveHash()

leaveHash(Cursor $cursor, int $type, string $class, bool $hasChild, int $cut) Dumps while leaving an hash. Parameters Cursor $cursor The Cursor position in the dump int $type A Cursor::HASH_* const for the type of hash string $class The object class, resource type or array count bool $hasChild When the dump of the hash has child item int $cut The number of items the hash has been cut by

DumperInterface::isProxyCandidate()

bool isProxyCandidate(Definition $definition) Inspects whether the given definitions should produce proxy instantiation logic in the dumped container. Parameters Definition $definition Return Value bool

DumperInterface::getProxyFactoryCode()

string getProxyFactoryCode(Definition $definition, $id) Generates the code to be used to instantiate a proxy in the dumped factory code. Parameters Definition $definition $id Return Value string

DumperInterface

interface DumperInterface Lazy proxy dumper capable of generating the instantiation logic PHP code for proxied services. Methods bool isProxyCandidate(Definition $definition) Inspects whether the given definitions should produce proxy instantiation logic in the dumped container. string getProxyFactoryCode(Definition $definition, $id) Generates the code to be used to instantiate a proxy in the dumped factory code. string getProxyCode(Definition $definition) Generates the code fo

DumperInterface

interface DumperInterface DumperInterface is the interface implemented by all translation dumpers. There is no common option. Methods dump(MessageCatalogue $messages, array $options = array()) Dumps the message catalogue. Details dump(MessageCatalogue $messages, array $options = array()) Dumps the message catalogue. Parameters MessageCatalogue $messages The message catalogue array $options Options that are used by the dumper

DumperInterface

interface DumperInterface DumperInterface used by Data objects. Methods dumpScalar(Cursor $cursor, string $type, scalar $value) Dumps a scalar value. dumpString(Cursor $cursor, string $str, bool $bin, int $cut) Dumps a string. enterHash(Cursor $cursor, int $type, string $class, bool $hasChild) Dumps while entering an hash. leaveHash(Cursor $cursor, int $type, string $class, bool $hasChild, int $cut) Dumps while leaving an hash. Details dump