Try and figure out what's going on with the flash messages.

This commit is contained in:
Dave Smith-Hayes 2024-11-27 22:42:37 -05:00
parent 7fc7b95ccd
commit d782bd9081
6 changed files with 38 additions and 28 deletions

44
app/composer.lock generated
View File

@ -3151,16 +3151,16 @@
},
{
"name": "symfony/deprecation-contracts",
"version": "v3.5.0",
"version": "v3.5.1",
"source": {
"type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git",
"reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"
"reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
"reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
"reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
"shasum": ""
},
"require": {
@ -3198,7 +3198,7 @@
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0"
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1"
},
"funding": [
{
@ -3214,7 +3214,7 @@
"type": "tidelift"
}
],
"time": "2024-04-18T09:32:20+00:00"
"time": "2024-09-25T14:20:29+00:00"
},
{
"name": "symfony/filesystem",
@ -3758,16 +3758,16 @@
},
{
"name": "symfony/service-contracts",
"version": "v3.5.0",
"version": "v3.5.1",
"source": {
"type": "git",
"url": "https://github.com/symfony/service-contracts.git",
"reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f"
"reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f",
"reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f",
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/e53260aabf78fb3d63f8d79d69ece59f80d5eda0",
"reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0",
"shasum": ""
},
"require": {
@ -3821,7 +3821,7 @@
"standards"
],
"support": {
"source": "https://github.com/symfony/service-contracts/tree/v3.5.0"
"source": "https://github.com/symfony/service-contracts/tree/v3.5.1"
},
"funding": [
{
@ -3837,7 +3837,7 @@
"type": "tidelift"
}
],
"time": "2024-04-18T09:32:20+00:00"
"time": "2024-09-25T14:20:29+00:00"
},
{
"name": "symfony/string",
@ -5116,16 +5116,16 @@
},
{
"name": "phpunit/phpunit",
"version": "11.4.3",
"version": "11.4.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "e8e8ed1854de5d36c088ec1833beae40d2dedd76"
"reference": "f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e8e8ed1854de5d36c088ec1833beae40d2dedd76",
"reference": "e8e8ed1854de5d36c088ec1833beae40d2dedd76",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4",
"reference": "f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4",
"shasum": ""
},
"require": {
@ -5135,7 +5135,7 @@
"ext-mbstring": "*",
"ext-xml": "*",
"ext-xmlwriter": "*",
"myclabs/deep-copy": "^1.12.0",
"myclabs/deep-copy": "^1.12.1",
"phar-io/manifest": "^2.0.4",
"phar-io/version": "^3.2.1",
"php": ">=8.2",
@ -5146,7 +5146,7 @@
"phpunit/php-timer": "^7.0.1",
"sebastian/cli-parser": "^3.0.2",
"sebastian/code-unit": "^3.0.1",
"sebastian/comparator": "^6.1.1",
"sebastian/comparator": "^6.2.1",
"sebastian/diff": "^6.0.2",
"sebastian/environment": "^7.2.0",
"sebastian/exporter": "^6.1.3",
@ -5196,7 +5196,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/11.4.3"
"source": "https://github.com/sebastianbergmann/phpunit/tree/11.4.4"
},
"funding": [
{
@ -5212,7 +5212,7 @@
"type": "tidelift"
}
],
"time": "2024-10-28T13:07:50+00:00"
"time": "2024-11-27T10:44:52+00:00"
},
{
"name": "sebastian/cli-parser",
@ -6248,12 +6248,12 @@
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {},
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"ext-pdo": "*"
},
"platform-dev": {},
"platform-dev": [],
"plugin-api-version": "2.6.0"
}

View File

@ -9,6 +9,13 @@ class DatabaseHandler implements DatabaseHandlerInterface
{
private PDO $handle;
/**
* @param string $host
* @param string $username
* @param string $password
* @param string $database
* @param int $port
*/
public function __construct(
private string $host,
private string $username,
@ -18,13 +25,13 @@ class DatabaseHandler implements DatabaseHandlerInterface
) {
$this->handle = new PDO(
$this->getConnectionString(),
$username,
$password
$this->username,
$this->password
);
}
/**
* @return PDO For this particular Handler we will return the PDO objectg
* @return PDO For this particular Handler we will return the PDO object
*/
public function getConnection()
{

View File

@ -19,7 +19,8 @@ class AuthenticatedMiddleware implements MiddlewareInterface
public function process(Request $request, RequestHandler $handler): Response
{
if ($this->session->has('user')) {
if ($this->session->get('user')['authenticated']) {
$userSession = $this->session->get('user');
if ($userSession['authenticated']) {
return $handler->handle($request);
}
}

View File

@ -56,6 +56,6 @@ class Middlewares
$app->add(TwigMiddleware::create($app, $twig));
// Add the error handling middleware
$app->addErrorMiddleware(true, true, true);
$app->addErrorMiddleware(true, true, true);
}
}

View File

@ -11,6 +11,7 @@
<channel>
{% block channel %}
<title>{{ channel.title }}</title>
<atom:link href="{{ feed_url }}" rel="self" type="application/rss+xml"/>
<link>{{ channel.url }}</link>
@ -39,6 +40,7 @@
<itunes:image href="https://pbcdn1.podbean.com/imglogo/image-logo/4943691/kcb-banner.jpg" />
{% endblock %}
{% block image %}{% endblock %}
{# Render each episoe in here #}

View File

@ -3,4 +3,4 @@ zend_extension=xdebug
xdebug.mode=develop,debug
xdebug.client_host=host.docker.internal
xdebug.start_with_request=yes
xdebug.idekey="slovocast"