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

View File

@ -9,6 +9,13 @@ class DatabaseHandler implements DatabaseHandlerInterface
{ {
private PDO $handle; private PDO $handle;
/**
* @param string $host
* @param string $username
* @param string $password
* @param string $database
* @param int $port
*/
public function __construct( public function __construct(
private string $host, private string $host,
private string $username, private string $username,
@ -18,13 +25,13 @@ class DatabaseHandler implements DatabaseHandlerInterface
) { ) {
$this->handle = new PDO( $this->handle = new PDO(
$this->getConnectionString(), $this->getConnectionString(),
$username, $this->username,
$password $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() public function getConnection()
{ {

View File

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

View File

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

View File

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

View File

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