use App\HTMLGenerator\Presenters\HTML5Presenter; use App\Events\EventEmitter; class Reports { function reportGenerator() { $tableFactory = new TableFactory; $table = $tableFactory->newTable(); EventEmitter::emit(TableEvents::TABLE_CREATED, [$table]); $row = new Row; $row->addCell(new Cell('Name')); $table->addRow($row); $htmlPresenter = new HTML5Presenter(); echo $htmlPresenter->render($table); } }
failing silently Rather have no users able to register than register without the password field Rather have a contact form burn up in flames than have it send without the message body Rather have the reports email die than have it mail the client 300 notifications in an hour