PhpProcess::setPhpBinary()

setPhpBinary($php) Sets the path to the PHP binary to use. Parameters $php

PhpProcess

class PhpProcess extends Process PhpProcess runs a PHP script in an independent process. $p = new PhpProcess('<?php echo "foo"; ?>'); $p->run(); print $p->getOutput()."\n"; Constants ERR OUT STATUS_READY STATUS_STARTED STATUS_TERMINATED STDIN STDOUT STDERR TIMEOUT_PRECISION ITER_NON_BLOCKING ITER_KEEP_OUTPUT ITER_SKIP_OUT ITER_SKIP_ERR Properties static array $exitCodes Exit codes translation table. from Process Methods

PhpMatcherDumper::dump()

string dump(array $options = array()) Dumps a set of routes to a PHP class. Available options: class: The class name base_class: The base class name Parameters array $options An array of options Return Value string Executable code

PhpMatcherDumper::addExpressionLanguageProvider()

addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) Parameters ExpressionFunctionProviderInterface $provider

PhpMatcherDumper

class PhpMatcherDumper extends MatcherDumper PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes. Methods __construct(RouteCollection $routes) Constructor. from MatcherDumper RouteCollection getRoutes() Gets the routes to dump. from MatcherDumper string dump(array $options = array()) Dumps a set of routes to a PHP class. addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) Details __const

PhpGeneratorDumper

class PhpGeneratorDumper extends GeneratorDumper PhpGeneratorDumper creates a PHP class able to generate URLs for a given set of routes. Methods __construct(RouteCollection $routes) Constructor. from GeneratorDumper RouteCollection getRoutes() Gets the routes to dump. from GeneratorDumper string dump(array $options = array()) Dumps a set of routes to a PHP class. Details __construct(RouteCollection $routes) Constructor. Parameters Ro

PhpFileLoader

class PhpFileLoader extends FileLoader PhpFileLoader loads translations from PHP files returning an array of translations. Methods MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. from FileLoader Details MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. Parameters mixed $resource A resource string $locale A locale string $domain The domain Retu

PhpFileLoader

class PhpFileLoader extends FileLoader PhpFileLoader loads routes from a PHP file. The file must return a RouteCollection instance. Methods LoaderResolverInterface getResolver() Gets the loader resolver. from Loader setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. from Loader mixed import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null) Imports a resource. from FileLoader LoaderInterface resolve

PhpFileLoader

class PhpFileLoader extends FileLoader PhpFileLoader loads service definitions from a PHP file. The PHP file is required and the $container variable can be used within the file to change the container. Methods LoaderResolverInterface getResolver() Gets the loader resolver. from Loader setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. from Loader mixed import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource =

PhpFileDumper

class PhpFileDumper extends FileDumper PhpFileDumper generates PHP files from a message catalogue. Methods setRelativePathTemplate(string $relativePathTemplate) Sets the template for the relative paths to files. from FileDumper setBackup(bool $backup) Sets backup flag. from FileDumper dump(MessageCatalogue $messages, array $options = array()) Dumps the message catalogue. from FileDumper string formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array(