December 2016
Beginner to intermediate
238 pages
6h 10m
English
© Kelt Dockins 2017
Kelt Dockins, Design Patterns in PHP and Laravel, 10.1007/978-1-4842-2451-9_17
Kelt Dockins1
(1)Dolph, Arkansas, USA
$> git checkout commandEncapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations. 1
When you need to decouple an object that performs an action from an object that invokes an action, this is a good pattern to use. What does that last part really mean, though? Suppose you want to queue up a list of events that all do various different things. Later you will purge the queue, which will actually invoke all of those actions. Why would you not just invoke/perform the action immediately? There ...
Read now
Unlock full access