Skip to content
Closed
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
1 change: 0 additions & 1 deletion examples/config/neuron.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
system:
timezone: US/Eastern
base_path: examples
routes_path: examples/config

logging:
destination: \Neuron\Log\Destination\File
Expand Down
174 changes: 0 additions & 174 deletions examples/config/routes.yaml

This file was deleted.

8 changes: 8 additions & 0 deletions resources/app/Initializers/AuthInitializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ public function run( array $argv = [] ): mixed
if( !empty( $settingNames ) )
{
// Get services from container
// Check if services exist before trying to get them (for fallback container scenarios)
if( !$container->has( Authentication::class ) ||
!$container->has( CsrfToken::class ) )
{
Log::warning( "Auth services not available in container, skipping auth filter registration" );
return null;
}

$authentication = $container->get( Authentication::class );
$csrfToken = $container->get( CsrfToken::class );

Expand Down
9 changes: 9 additions & 0 deletions resources/app/Initializers/RegistrationInitializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ public function run( array $argv = [] ): mixed
if( !empty( $settingNames ) )
{
// Get services from container
// Check if services exist before trying to get them (for fallback container scenarios)
if( !$container->has( Authentication::class ) ||
!$container->has( EmailVerifier::class ) ||
!$container->has( RegistrationService::class ) )
{
Log::warning( "Registration services not available in container, skipping member filter registration" );
return null;
}

$authentication = $container->get( Authentication::class );
$emailVerifier = $container->get( EmailVerifier::class );
$registrationService = $container->get( RegistrationService::class );
Expand Down
1 change: 0 additions & 1 deletion resources/config/neuron.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
system:
timezone: UTC # Server timezone (e.g., America/New_York, Europe/London, UTC)
base_path: resources # Base path for resources
routes_path: resources/config # Path to routes configuration

routing:
controller_paths:
Expand Down
Loading