Created
December 3, 2013 20:51
-
-
Save timuruski/7777265 to your computer and use it in GitHub Desktop.
Is there any way to get this sort of thing working in PHP?
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
Environment::build( function () { | |
$api_key = 'ABC123'; | |
$partials_path = array('app/views/'); | |
}); | |
// Dumps something like this: | |
// => array('api_key' = 'ABC123', $partials_path => array('app/views/')) | |
// The method should be able to digest things like $api_key into an actual API connection instance. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to avoid this ugliess:
... though with all the required semicolons, it's not significantly uglier than the goal. Now I'm depressed.