Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
UserFrosting 5.0

Class structure :

UserFrosting

Repo structure overview

- UserFrosting
    - Core
    - Account
    - Admin
- Assets
- Cache
- Config
- Fortress
- I18n
- Session
- Support
- UniformResourceLocator

Class structure :

UserFrosting (skeleton)

Repo structure overview

- UserFrosting (Skeleton repo)
    - app/
        - cache/
        - logs/
        - sessions/
        - sprinkles/
            - …
        - storage/
        - .env
    - public/
        - index.php
    - vendor/
    - bakery
    
- UserFrosting Account Sprinkle
    - src/
    - tests/
    
- UserFrosting Admin Sprinkle
    - src/
    - tests/
    
- UserFrosting Core Sprinkle
    - src/
    - tests/
    
- UserFrosting-Framework
    - src/
        - Alert
        - Assets
        - Bakery
        - Cache
        - Config
        - Controller
        - Cerf
        - Database
            - Migrator
            - Model
            - Relations
            - Seeder
        - Error
        - Fortress
        - Http
        - I18n
        - Log
        - Mail
        - Router
        - ServicesProvider
        - Session
        - Sprunje
        - Support
        - Sprinkle
        - Tests
        - Throttle
        - Twig
        - UniformResourceLocator
        - Util
    - tests/
@lcharette
Copy link
Author

lcharette commented May 3, 2020

List of current services

System

Service Class Required
eventDispatcher \RocketTheme\Toolbox\Event\EventDispatcher x
locator \UserFrosting\UniformResourceLocator\ResourceLocator x
sprinkleManager \UserFrosting\System\Sprinkle\SprinkleManager x

Core

Service Class Required
alerts \UserFrosting\Sprinkle\Core\Alert\AlertStream
assetLoader \UserFrosting\Assets\AssetLoader
assets \UserFrosting\Assets\Assets
cache \Illuminate\Cache\Repository
checkEnvironment \UserFrosting\Sprinkle\Core\Util\CheckEnvironment
classMapper \UserFrosting\Sprinkle\Core\Util\ClassMapper
config \UserFrosting\Support\Repository\Repository
csrf \Slim\Csrf\Guard x
db \Illuminate\Database\Capsule\Manager
debugLogger \Monolog\Logger x
errorHandler \UserFrosting\Sprinkle\Core\Error\ExceptionHandlerManager x
errorLogger \Monolog\Logger x
factory \League\FactoryMuffin\FactoryMuffin
filesystem \UserFrosting\Sprinkle\Core\Filesystem\FilesystemManager
locale \UserFrosting\Sprinkle\Core\I18n\SiteLocale
mailer \UserFrosting\Sprinkle\Core\Mail\Mailer
mailLogger \Monolog\Logger
migrator \UserFrosting\Sprinkle\Core\Database\Migrator\Migrator
notFoundHandler callable x
phpErrorHandler \UserFrosting\Sprinkle\Core\Error\ExceptionHandlerManager x
queryLogger \Monolog\Logger x
router \UserFrosting\Sprinkle\Core\Router x
seeder \UserFrosting\Sprinkle\Core\Database\Seeder\Seeder
session \UserFrosting\Session\Session x
throttler \UserFrosting\Sprinkle\Core\Throttle\Throttler
translator \UserFrosting\I18n\Translator
view \Slim\Views\Twig x

Admin

Service Class
classMapper Provides extension
redirect.onLogin callable

Account

Service Class
assets Provides extension
classMapper Provides extension
errorHandler Provides extension
view Provides extension
authenticator \UserFrosting\Sprinkle\Account\Authenticate\Authenticator
authGuard \UserFrosting\Sprinkle\Account\Authenticate\AuthGuard
authLogger \Monolog\Logger
authorizer \UserFrosting\Sprinkle\Account\Authorize\AuthorizationManager
currentUser \UserFrosting\Sprinkle\Account\Database\Models\Interfaces\UserInterface
locale Provides extension
passwordHasher \UserFrosting\Sprinkle\Account\Authenticate\Hasher
redirect.onAlreadyLoggedIn callable
redirect.onLogin callable
repoPasswordReset \UserFrosting\Sprinkle\Account\Repository\PasswordResetRepository
repoVerification \UserFrosting\Sprinkle\Account\Repository\VerificationRepository
userActivityLogger \Monolog\Logger

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