Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature/app rewrite#290

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
slawkens wants to merge21 commits intodevelop
base:develop
Choose a base branch
Loading
fromfeature/app-rewrite
Draft

Feature/app rewrite#290

slawkens wants to merge21 commits intodevelopfromfeature/app-rewrite

Conversation

slawkens
Copy link
Owner

@slawkensslawkens commentedMar 10, 2025
edited
Loading

  • Separate app logic into classes: App, Console & Admin.

So in the corresponding index.php, there is just app->run(), $console->run() or admin->run()

The code looks so much cleaner.

  • Also dropped support for gesior backward_support.

  • Avoid usage of global variables where possible, instead use following construct:

$db =app()->get('db');$cache =app()->get('cache');$twig =app()->get('twig');

etc.

  • Moved the signature code from index.php to routes.php

Planned for myaac 2.0.

Create services for: login, status, router, database, AnonymousStatisticsDrop gesior.backward_supportDrop compat/pages.phpDrop part of compat/classes.phpMove signature to routes
$logged => logged()$account_logged => accountLogged()
Removed old myaac_admin_menu codeAdd logged() + accountLogged() functions
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@slawkens

[8]ページ先頭

©2009-2025 Movatter.jp