This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using Microsoft.EntityFrameworkCore; | |
using Microsoft.EntityFrameworkCore.Diagnostics; | |
using Microsoft.Extensions.Logging; | |
namespace ProjectionCriteria | |
{ | |
public interface ISomeable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a workaround patch for `getenv()` unstable behavior in multithreaded "PHP as Apache module" environments | |
(e.g. some prepackaged WAMP stacks). | |
See | |
https://github.com/vlucas/phpdotenv/issues/76 | |
https://github.com/vlucas/phpdotenv/issues/163 | |
This fix is intended only for development environments, the same as Dotenv itself. | |
The paths are based on Composer's vendor directory. | |
diff --git a/vendor/vlucas/phpdotenv/src/Dotenv.php b/vendor/vlucas/phpdotenv/src/Dotenv.php | |
index 0737a70..d734a8b 100644 | |
--- a/vendor/vlucas/phpdotenv/src/Dotenv.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a workaround patch for `getenv()` unstable behavior in multithreaded "PHP as Apache module" environments | |
(e.g. some prepackaged WAMP stacks). | |
See | |
https://github.com/vlucas/phpdotenv/issues/76 | |
https://github.com/vlucas/phpdotenv/issues/163 | |
This fix is intended only for development environments, the same as Dotenv itself. | |
In production, you should use Laravel's `config:cache` command to avoid `env` helper and Dotenv altogether. | |
The paths are based on Composer's vendor directory. | |
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/DetectEnvironment.php b/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/DetectEnvironment.php | |
index 673ce3a..f250729 100644 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Simple contract or interface, call as you wish: | |
interface UnitOfWork | |
{ | |
public function begin(); | |
public function commit(); | |
public function rollback(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix for Dotenv and Laravel issues with concurrent requests failing because of PHP threaded getenv/putenv implementation. | |
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php b/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php | |
index de5939e..715673d 100644 | |
--- a/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php | |
+++ b/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php | |
@@ -625,10 +625,15 @@ if (!function_exists('env')) | |
*/ | |
function env($key, $default = null) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Improvement to prevent writing session data even if it has not changed. | |
Improvement to specify session metadata update frequency in session configuration instead of updating on every request. | |
These both improvements will also reduce the risk for race conditions for concurrent requests. | |
Also, add 'metadata_update_threshold' => 1, to your config/session.php | |
diff --git a/vendor/laravel/framework/src/Illuminate/Session/EncryptedStore.php b/vendor/laravel/framework/src/Illuminate/Session/EncryptedStore.php | |
index edf34b8..0b5b763 100644 | |
--- a/vendor/laravel/framework/src/Illuminate/Session/EncryptedStore.php | |
+++ b/vendor/laravel/framework/src/Illuminate/Session/EncryptedStore.php | |
@@ -22,12 +22,13 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Improvement to prevent writing session data even if it has not changed. | |
Improvement to specify session metadata update frequency in session configuration instead of updating on every request. | |
These both improvements will also reduce the risk for race conditions for concurrent requests. | |
Also, add 'metadata_update_threshold' => 1, to your config/session.php | |
diff --git a/vendor/laravel/framework/src/Illuminate/Session/EncryptedStore.php b/vendor/laravel/framework/src/Illuminate/Session/EncryptedStore.php | |
index edf34b8..0b5b763 100644 | |
--- a/vendor/laravel/framework/src/Illuminate/Session/EncryptedStore.php | |
+++ b/vendor/laravel/framework/src/Illuminate/Session/EncryptedStore.php | |
@@ -20,13 +20,14 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix for Dotenv and Laravel issues with concurrent requests failing because of PHP threaded getenv/putenv implementation. | |
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php b/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php | |
index de5939e..715673d 100644 | |
--- a/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php | |
+++ b/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php | |
@@ -603,9 +603,14 @@ if ( ! function_exists('env')) | |
*/ | |
function env($key, $default = null) | |
{ |