mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
# msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../../Behavioral/Command/README.rst:2 msgid "`Command`__" msgstr "" #: ../../Behavioral/Command/README.rst:5 msgid "Purpose" msgstr "" #: ../../Behavioral/Command/README.rst:7 msgid "To encapsulate invocation and decoupling." msgstr "" #: ../../Behavioral/Command/README.rst:9 msgid "" "We have an Invoker and a Receiver. This pattern uses a \"Command\" to " "delegate the method call against the Receiver and presents the same method " "\"execute\". Therefore, the Invoker just knows to call \"execute\" to " "process the Command of the client. The Receiver is decoupled from the " "Invoker." msgstr "" #: ../../Behavioral/Command/README.rst:15 msgid "" "The second aspect of this pattern is the undo(), which undoes the method " "execute(). Command can also be aggregated to combine more complex commands " "with minimum copy-paste and relying on composition over inheritance." msgstr "" #: ../../Behavioral/Command/README.rst:21 msgid "Examples" msgstr "" #: ../../Behavioral/Command/README.rst:23 msgid "" "A text editor : all events are Command which can be undone, stacked and " "saved." msgstr "" #: ../../Behavioral/Command/README.rst:25 msgid "" "Symfony2: SF2 Commands that can be run from the CLI are built with just the " "Command pattern in mind" msgstr "" #: ../../Behavioral/Command/README.rst:27 msgid "" "big CLI tools use subcommands to distribute various tasks and pack them in " "\"modules\", each of these can be implemented with the Command pattern (e.g." " vagrant)" msgstr "" #: ../../Behavioral/Command/README.rst:32 msgid "UML Diagram" msgstr "" #: ../../Behavioral/Command/README.rst:39 msgid "Code" msgstr "" #: ../../Behavioral/Command/README.rst:41 msgid "You can also find these code on `GitHub`_" msgstr "" #: ../../Behavioral/Command/README.rst:43 msgid "CommandInterface.php" msgstr "" #: ../../Behavioral/Command/README.rst:49 msgid "HelloCommand.php" msgstr "" #: ../../Behavioral/Command/README.rst:55 msgid "Receiver.php" msgstr "" #: ../../Behavioral/Command/README.rst:61 msgid "Invoker.php" msgstr "" #: ../../Behavioral/Command/README.rst:68 msgid "Test" msgstr "" #: ../../Behavioral/Command/README.rst:70 msgid "Tests/CommandTest.php" msgstr ""