Created
March 28, 2018 09:02
-
-
Save CDRO/c2bce23402c0b098ef71e8fd06125680 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ... tx_news class | |
class PseudoNewsController extends NewsBaseController { | |
/** | |
* | |
*/ | |
public function listAction(Demand $demand /* ... */) { | |
// ... do something | |
$this->dispatch(/*...*/); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Slot class als POPO | |
class PseudoNewsSlot { | |
/** | |
* | |
*/ | |
public function listAction($parameters) { // <-- this will always work fine | |
// ... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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