luracast / config Goto Github PK
View Code? Open in Web Editor NEWRead configuration information from files that return associative arrays
License: GNU General Public License v2.0
Read configuration information from files that return associative arrays
License: GNU General Public License v2.0
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?
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!
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).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.