Last active
February 4, 2016 15:04
-
-
Save Tom32i/502b63468611cd63f011 to your computer and use it in GitHub Desktop.
Lazy Pocky
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 Lazy; | |
class Pocky | |
{ | |
private function __construct() | |
{ | |
dump("Lazy Pocky"); | |
} | |
public static function instantiate() | |
{ | |
return new static; | |
} | |
} |
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
services: | |
lazy.pocky: | |
class: Lazy\Pocky | |
factory: [Lazy\Pocky, instantiate] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment