Skip to content

Instantly share code, notes, and snippets.

@CDRO
Created March 28, 2018 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CDRO/c2bce23402c0b098ef71e8fd06125680 to your computer and use it in GitHub Desktop.
Save CDRO/c2bce23402c0b098ef71e8fd06125680 to your computer and use it in GitHub Desktop.
<?php
// ... tx_news class
class PseudoNewsController extends NewsBaseController {
/**
*
*/
public function listAction(Demand $demand /* ... */) {
// ... do something
$this->dispatch(/*...*/);
}
}
<?php
// Slot class als POPO
class PseudoNewsSlot {
/**
*
*/
public function listAction($parameters) { // <-- this will always work fine
// ...
}
}
<?php
// Slot class extending the news class
use PseudoNewsController;
class PseudoNewsSlotExtending extends PseudoNewsController {
/**
*
*/
public function listAction($parameters) { // <-- this leads to issues when working in strict more
// ... do something
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment