public static function getInstance($actionsPaths) { if (!self::$_instance instanceof self) { self::$_instance = new self($actionsPaths); } return self::$_instance; }
public static function create($id = null) { $pathsProvider = PathsProvider::init(); return DynamicActionMap::getInstance($pathsProvider->getActionsDirs())->generate($id); }