Created
April 16, 2017 03:21
-
-
Save pedrogk/0c7efdc2c92da003cee9e964eb6d1863 to your computer and use it in GitHub Desktop.
Inyección vía propiedades
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 | |
class MyClass { | |
public $logger; | |
public function send($message) { | |
return $this->logger->info($message); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment