-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Unable to get all items of a package config #41
Comments
Hi @billmn This is true, maybe you should put a pull request onto http://www.github.com/laravel/docs :) Good point though as this can throw people off initially. |
You still have to provide the filename, even if that file is the Remember you can have multiple config files so Laravel doesn't know which file to fetch the keys out of. Unless you want to load all config items from all files with |
No ... it doesn't work, I've tried : Config::package('billmn/twig', 'twig'); var_dump(Config::get('twig::config')); with this I can get options for the specified key ('view_extensions') : Config::package('billmn/twig', 'twig'); var_dump(Config::get('twig::view_extensions'));
I would need to get all options for a specified config file ... I don't need to have them all |
You're setting up the config wrong for the package. The second parameter should be the path to the
Laravel will automatically use |
Oh Jason that's not right as of the last 3 days. It's now reversed cheek out the ServiceProvider Sent from my iPhone On 15/01/2013, at 9:25 PM, Jason Lewis [email protected] wrote:
|
@bencorlett I'm talking about config registration separately, not the package registration as per the service provider. See here: https://github.com/laravel/framework/blob/master/src/Illuminate/Config/Repository.php#L218 |
Oh, sorry my bad misread there Sent from my iPhone On 15/01/2013, at 9:33 PM, Jason Lewis [email protected] wrote:
|
@jasonlewis Right ... now it works fine. Thanks for the support |
@jasonlewis What about add this on the docs? is missing now |
@billmn No worries at all. Which part needs clarifying in the docs? Actually getting all keys from an entire file? |
Exactly ... in particular in this section : unfortunately my english sucks :) |
No worries at all. I've noted it down and will clarify it when I get the chance. Thanks for the feedback @billmn. :) |
…des-and-messages Handle API error codes & messages
Update readme.md
I've created a package with it's own config file ... I can retrieve an item of this configuration with :
but I cannot retrieve all items of this package using :
After this I think that can be useful add this tip to the docs
The text was updated successfully, but these errors were encountered: