Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Set Capsule to be available globally when using standalone [enhancement] #138

Closed
PeterSchumacher opened this issue Dec 23, 2013 · 3 comments

Comments

@PeterSchumacher
Copy link
Contributor

Make Capsule instance available globally via static methods by adding

    $db->setAsGlobal();

to method 'configureAsExternal' at around line 449 in Ardent.php

Thank you!

@igorsantos07
Copy link
Member

Stupid question: what would the capsule be used for in this case?
On Dec 22, 2013 11:14 PM, "Peter Schumacher" [email protected]
wrote:

Make Capsule instance available globally via static methods by adding

$db->setAsGlobal();

to method 'configureAsExternal' at around line 449 in Ardent.php

Thank you!


Reply to this email directly or view it on GitHubhttps://github.com//issues/138
.

@PeterSchumacher
Copy link
Contributor Author

I'm using Ardent standalone and would like to be able to use the Capsule for migration, schema etc.
The alternative is to instanciate another copy of the Capsule independently.

@igorsantos07
Copy link
Member

Hmmm got it.
Would you send q PR? (:
it's the best way to put your name in the repo.
On Dec 23, 2013 1:20 AM, "Peter Schumacher" [email protected]
wrote:

I'm using Ardent standalone and would like to be able to use the Capsule
for migration, schema etc.
The alternative is to instanciate another copy of the Capsule
independently.


Reply to this email directly or view it on GitHubhttps://github.com//issues/138#issuecomment-31102799
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants