Created
November 22, 2014 09:36
-
-
Save flavius/b66b218192fbedeac312 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
namespace application\Common; | |
class Bar extends \library\Common\Bar { | |
public function __construct() { | |
echo __METHOD__, PHP_EOL; | |
parent::__construct(); | |
} | |
} |
This file contains hidden or 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 | |
$loader = require_once __DIR__.'/vendor/autoload.php'; | |
$bar = new \Common\Bar; |
This file contains hidden or 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 | |
namespace library\Common; | |
class Bar { | |
public function __construct() { | |
echo __METHOD__, PHP_EOL; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment