Showing 7 of 1,975 result(s)
The getFallback() method is used to return the fallback locale that the translator is currently using. A fallback locale is used when a translation for a different locale cannot be found.
…ilar to defining command parameters with the exception that option names begin with the two hyphen ( -- ) prefix. The following signature defines the same two firstName and lastName parameters with an optional --age option: Notice, in the above...
It is also possible to specify a default value for the options. The following signature is similar to the previous one, except that the --age option will have a default value of 0 that will be used if the end user does not specify an age: The new...
You can see from the above output that the command accepts an --age option and it has a default value of 0 . Although --age is fairly descriptive, it would be nice to give the option a good description. The process to add a description to options...
The queue:restart command can be used to indicate to all daemon queue workers that they should restart. This command simply instructs the queue works to restart after they are done working on their current job. This command defines no options or...
The buffer command is useful when entering multi-line expressions. It can be used at any time to view the contents of the buffer when entering multi-line expressions without interrupting the expression input. The following example sessions...
The dump command can be used to display information about a particular variable or class instance within the console window. It will display the information using Symfony's VarDumper console component: It also import to note that since the Tinker...