Code Monkey home page Code Monkey logo

config's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

config's Issues

Exception on missing config option

In most cases I would prefer an exception would be thrown instead of handling possible NULL value on every ->get() call. Is it possible? Is this package alive or abandoned already?

config deleted when set before get

I try to do this example

The config file is
return [
...
'mt' => [
'size_list_mts' => 20 ,
'max_sending_tries' => 3,
'delay_loop_cli' => 1000000, // microseconds
'start_sending_time' => 8 , // hours
'end_sending_time' => 19 , // hours
],
...
];
the example that gets the error is
...
Config::set('config.mt.end_sending_time', $hour1+1);
echo "config mt after";print_r(Config::get('config.mt'));

In this example, the set is called before get and shows me:

,config mtArray
(
[start_sending_time] => 12
[end_sending_time] => 13
)

But when I get before set, in this example, the answer is correct:

echo "config mt before";print_r(Config::get('config.mt'));
Config::set('config.mt.start_sending_time', (int)$hour1);
Config::set('config.mt.end_sending_time', $hour1+1);
echo "config mt after";print_r(Config::get('config.mt'));

.config mt beforeArray
(
[size_list_mts] => 20
[max_sending_tries] => 3
[delay_loop_cli] => 1000000
[start_sending_time] => 8
[end_sending_time] => 19
)
config mt afterArray
(
[size_list_mts] => 20
[max_sending_tries] => 3
[delay_loop_cli] => 1000000
[start_sending_time] => 8
[end_sending_time] => 19
)

Please fix this.

thanks!

Broken symbolic link in "php-parse"

The repository contains the php-parse file, which is a symbolic link to the vendor/nikic/php-parser/bin/php-parse file. It makes sense during development when the repository is the root repository and all required dependencies are installed in the vendor folder. However, when using this package normally, it causes an invalid symbolic link to exist. And this leads to problems. For example, in Windows, when you want to copy the whole project directory using xcopy /E /I repo temp:

...
repo\php\vendor\luracast\config\.gitignore
repo\php\vendor\luracast/config.travis.yml.
repo\php\vendor\luracast/config/composer.json.
repo\php\vendor\luracast/config/composer.lock.
repo\php\vendor\luracast/config/LICENSE.txt.
repo/php/vendor/luracast/config/php-parse.
File creation error - The filename, directory name, or volume label syntax is incorrect.

... and all other files cannot be copied because of this error. Problems also occur when archiving the project in ZIP, RAR, etc.

I would like you to remove this file from the repository and create a new stable tag (e.g. 2.0.3).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.