Skip to content

Instantly share code, notes, and snippets.

@Tom32i
Last active February 4, 2016 15:04
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 Tom32i/502b63468611cd63f011 to your computer and use it in GitHub Desktop.
Save Tom32i/502b63468611cd63f011 to your computer and use it in GitHub Desktop.
Lazy Pocky
<?php
namespace Lazy;
class Pocky
{
private function __construct()
{
dump("Lazy Pocky");
}
public static function instantiate()
{
return new static;
}
}
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