@@ -1535,7 +1535,7 @@ public function createStreamFromResource($resource): StreamInterface
15351535            return  Stream::create ($ resource
15361536        }
15371537
1538-         public  function  createUploadedFile (StreamInterface $ streamint  $ sizenull , int  $ errorUPLOAD_ERR_OK , string  $ clientFilenamenull , string  $ clientMediaTypenull ): UploadedFileInterface 
1538+         public  function  createUploadedFile (StreamInterface $ stream? int  $ sizenull , int  $ errorUPLOAD_ERR_OK , ? string  $ clientFilenamenull , ? string  $ clientMediaTypenull ): UploadedFileInterface 
15391539        {
15401540            if  (null  === $ size
15411541                $ size$ streamgetSize ();
@@ -2000,7 +2000,7 @@ class Response implements ResponseInterface
20002000         * @param string $version Protocol version 
20012001         * @param string|null $reason Reason phrase (when empty a default will be used based on the status code) 
20022002         */ 
2003-         public  function  __construct (int  $ status200 , array  $ headers$ bodynull , string  $ version'1.1 ' , string  $ reasonnull )
2003+         public  function  __construct (int  $ status200 , array  $ headers$ bodynull , string  $ version'1.1 ' , ? string  $ reasonnull )
20042004        {
20052005            // If we got no body, defer initialization of the stream until Response::getBody() 
20062006            if  (''  !== $ bodynull  !== $ body
@@ -4736,7 +4736,12 @@ class Config implements ConfigInterface
47364736            'openApiBase '  => '{"info":{"title":"PHP-CRUD-API","version":"1.0.0"}} ' ,
47374737            'geometrySrid '  => 4326 ,
47384738        ];
4739- 
4739+         
4740+         public  function  getUID (): string 
4741+         {
4742+             return  md5 (json_encode ($ this values ));
4743+         }
4744+         
47404745        private  function  getDefaultDriver (array  $ valuesstring 
47414746        {
47424747            if  (isset ($ values'driver ' ])) {
@@ -12308,7 +12313,7 @@ public function __construct(Config $config)
1230812313                $ configgetPassword (),
1230912314                $ configgetGeometrySrid ()
1231012315            );
12311-             $ prefixsprintf ('phpcrudapi-%s- ' , substr (md5 ( __FILE__ ), 0 , 8 ));
12316+             $ prefixsprintf ('phpcrudapi-%s- ' , substr ($ config -> getUID ( ), 0 , 8 ));
1231212317            $ cachecreate ($ configgetCacheType (), $ prefix$ configgetCachePath ());
1231312318            $ reflectionnew  ReflectionService ($ db$ cache$ configgetCacheTime ());
1231412319            $ respondernew  JsonResponder ($ configgetJsonOptions (), $ configgetDebug ());
0 commit comments