Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doctrine session handler config + db schema #586

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,12 @@ services:

App\MyAreaBricks\Custom\Areabricks\:
resource: '../src/MyAreaBricks/Custom/Areabricks/*'

# ---------------------------------------------------------
# Use PdoSessionHandler for session storage
# ---------------------------------------------------------
Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler:
lazy: true
arguments:
- !service { class: PDO, factory: [ '@database_connection', 'getNativeConnection' ] }
- { lock_mode: 0 }
9 changes: 9 additions & 0 deletions dump/data-0-bootstrap.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3272,3 +3272,12 @@ CREATE TABLE `generic_execution_engine_error_log` (
FOREIGN KEY (jobRunId) REFERENCES generic_execution_engine_job_run (id)
ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

DROP TABLE IF EXISTS `sessions`;
CREATE TABLE `sessions` (
sess_id varbinary(128) NOT NULL PRIMARY KEY,
sess_data longblob NOT NULL,
sess_lifetime int unsigned NOT NULL,
sess_time int unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
CREATE INDEX sess_lifetime_idx ON `sessions` (sess_lifetime);
Loading