ohoareau / libs-php Goto Github PK
View Code? Open in Web Editor NEWCommon foundation for PHP / Symfony @itiqiti
Home Page: https://www.itiqiti.fund
Common foundation for PHP / Symfony @itiqiti
Home Page: https://www.itiqiti.fund
into vendor/itiqiti/common/src/Itq/Bundle/ItqBundle/Resources/config/services.yml :
actual :
# others
app.redis:
class: Redis
calls:
- ['connect', ['127.0.1.1']]
proposal:
# others
app.redis:
class: Redis
calls:
- ['connect', ['%redis_name%']]
Ability to load an instance base on a request header.
Instance are generic concept that provide ability to bind to a specific database for instance.
Using $request->query
instead of $request->attributes
src/Itq/Common/Plugin/ModelRefresher/DefaultValuesLoaderModelRefresher.php:
$v[‘value’] = new DateTime()**;
src/Itq/Common/Plugin/ModelRefresher/TriggerRefreshesModelRefresher.php:
$doc->$property =new DateTime();
An error occurs when I try to use parseUrl in HttpService.
X-Api-Time HTTP header can be used to set the current starting timestamp of the request.
RequestService::parse(Request $request, ['client', 'user', 'instance'], ['clean' => true])
Should parse the 3 headers (and check validity) and then clean the instance.
This method can be used in a controller to trigger a cleaning of the instance (i.e. remove the instance database).
An error occurs on webservices resource creation (bulk) :
RuntimeException {#6448 ▼
#message: "No 'stat' in trackers list"
#code: 412
#file: "/var/www/src_ws/vendor/itiqiti/common/src/Itq/Common/Traits/Thrower/BaseThrowerTrait.php"
#line: 41
An exception occurs when we try to cal webservices.
The stack trace :
at DateService ->createExceptionArray ('412', 'Expiration date malformed: %s', array(''))
in vendor/itiqiti/common/src/Itq/Common/Traits/Thrower/MalformedExceptionThrowerTrait.php at line 31 +
at DateService ->createMalformedException ('Expiration date malformed: %s', '')
in vendor/itiqiti/common/src/Itq/Common/Traits/Helper/Date/StringToDateTrait.php at line 43 +
at DateService ->convertStringToDate (null)
in vendor/itiqiti/common/src/Itq/Common/Service/DateService.php at line 180 +
at DateService ->convertStringToDateTime (null)
in vendor/itiqiti/common/src/Itq/Common/Plugin/RequestCodec/InstanceApiHeaderRequestCodec.php at line 100 +
at InstanceApiHeaderRequestCodec ->processDecoding (array('id' => null, 'expire' => null, 'token' => null), array())
in vendor/itiqiti/common/src/Itq/Common/Plugin/RequestCodec/Base/AbstractApiHeaderRequestCodec.php at line 66 +
at AbstractApiHeaderRequestCodec ->decode (object(Request))
in vendor/itiqiti/common/src/Itq/Common/Service/RequestService.php at line 79 +
at RequestService ->generate (object(Request), 'client', array('instance'))
in src/AppBundle/Controller/SecurityController.php at line 52 +
at SecurityController ->createClientTokenAction (object(Request))
at call_user_func_array (array(object(SecurityController), 'createClientTokenAction'), array(object(Request)))
in app/bootstrap.php.cache at line 3110 +
at HttpKernel ->handleRaw (object(Request), '1')
in app/bootstrap.php.cache at line 3072 +
at HttpKernel ->handle (object(Request), '1', true)
in app/bootstrap.php.cache at line 3223 +
at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
in app/bootstrap.php.cache at line 2442 +
at Kernel ->handle (object(Request))
in web/app_dev.php at line 23 +
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.