Skip to content

Conversation

@joshtrichards
Copy link
Member

Code was already pretty tidy; this just elevates it a bit more while cleaning up some minor tidbits.

  • Refactored php/public/index.php for improved readability, maintainability, and adherence to best practices
  • Introduced config constants; added type hints to all route closures
  • Grouped variables by domain/context for template clarity
  • Used route grouping with $group in Slim
  • Switched to consistent namespace usage
  • Added/updated comments
  • Ensured root route type hints ServerRequestInterface rather than RequestInterface
  • Dropped unused (and erroneous AFAIK) profile alias for the /containers/ route

Not offended if you don't merge this, but I was reading through it anyhow. ;-)

Shouldn't be any breaking changes; largely cosmetic. If something is broken it's probably a typo on my part. ;-)

@szaimen szaimen added this to the next milestone Jan 21, 2026
@szaimen szaimen added 2. developing Work in progress enhancement New feature or request technical debt labels Jan 21, 2026
@joshtrichards joshtrichards force-pushed the jtr/refactor-app-public branch from 895a860 to 4a2d5bb Compare January 23, 2026 15:54
@joshtrichards joshtrichards marked this pull request as ready for review January 23, 2026 22:25
@joshtrichards joshtrichards added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jan 23, 2026
$dataConst = $container->get(\AIO\Data\DataConst::class);
ini_set('session.save_path', $dataConst->GetSessionDirectory());

// Auto logout on browser close
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of these comments are useful intention revealing. I'd like to keep them

@szaimen szaimen requested a review from pabzm January 26, 2026 09:27
@szaimen
Copy link
Collaborator

szaimen commented Jan 28, 2026

There are unfortunately some conflicts now, so this needs a rebase

@szaimen szaimen added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Jan 28, 2026
@pabzm
Copy link
Member

pabzm commented Jan 29, 2026

I like some of these changes, e.g. adding type hints. But having all changes in one commit makes it really hard to review, especially if actual changes are mixed with reordering lines.

For a proper review I would need this cleaned up into smaller commits, or at least stripped by the reordering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress enhancement New feature or request technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants