-
-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check whether passthru() is disabled #114
Comments
Thanks for the bug report. There is currently a work-around for this that you can implement in the meantime, while I'm working on a solution for this in the library.
class MyFeatureSet extends \Ramsey\Uuid\FeatureSet
{
protected function buildNodeProvider()
{
return new \Ramsey\Uuid\Provider\Node\RandomNodeProvider();
}
}
$uuidFactory = new \Ramsey\Uuid\UuidFactory(new MyFeatureSet());
\Ramsey\Uuid\Uuid::setFactory($uuidFactory);
$uuid = \Ramsey\Uuid\Uuid::uuid1(); This work-around will work well. In the meantime, I'll think through approaches for how to handle this internally in the library. Thanks! |
Looks good! Thank you for the response. |
No problem! I'm reopening the issue to track this issue as an enhancement to provide better checking of whether |
I have a solution for this that will be available in the next 3.x release. Thanks! |
Recommend throwing exception if passthru is not available.
![screen shot 2016-04-07 at 18 02 32](https://cloud.githubusercontent.com/assets/6232455/14368317/fb6bf0ce-fcea-11e5-9e98-e5a028702f7e.png)
The text was updated successfully, but these errors were encountered: