Coder Social home page Coder Social logo

libs-php's Introduction

common

libs-php's People

Contributors

ohoareau avatar michel-maier avatar augustinmerle avatar agi-dev avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar Scrutinizer Auto-Fixer avatar  avatar  avatar  avatar

libs-php's Issues

redis configuration need to be updatable

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%']]

X-Api-Instance

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.

Replace new DateTime() by getDate (DateService)

src/Itq/Common/Plugin/ModelRefresher/DefaultValuesLoaderModelRefresher.php:
$v[‘value’] = new DateTime()**;
src/Itq/Common/Plugin/ModelRefresher/TriggerRefreshesModelRefresher.php:
$doc->$property =new DateTime();

Ability to "clean" a previously created instance (X-Api-Instance)

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).

Expiration date malformed

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   + 

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.