Uname: Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 145.239.37.162
Your Ip: 216.73.216.190
User: dreampi (1009562) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : Container.php
<?php

namespace AmeliaBooking\Infrastructure\Common;

use AmeliaBooking\Domain\Repository\User\UserRepositoryInterface;
use AmeliaBooking\Infrastructure\Connection;

/**
 * Class Container
 *
 * @package AmeliaBooking\Infrastructure\Common
 */
final class Container extends \Slim\Container
{
    /**
     * @return Connection
     * @throws \Interop\Container\Exception\ContainerException
     */
    public function getDatabaseConnection()
    {
        return $this->get('app.connection');
    }

    /**
     * @return UserRepositoryInterface
     * @throws \Interop\Container\Exception\ContainerException
     */
    public function getUserRepository()
    {
        return $this->get('domain.users.repository');
    }

    /**
     * Get the command bus
     *
     * @return mixed
     * @throws \Interop\Container\Exception\ContainerException
     */
    public function getCommandBus()
    {
        return $this->get('command.bus');
    }

    /**
     * Get the event bus
     *
     * @return mixed
     * @throws \Interop\Container\Exception\ContainerException
     */
    public function getEventBus()
    {
        return $this->get('domain.event.bus');
    }

    /**
     * Get the Permissions domain service
     *
     * @throws \Interop\Container\Exception\ContainerException
     */
    public function getPermissionsService()
    {
        return $this->get('domain.permissions.service');
    }

    /**
     * Get the API Permissions domain service
     *
     * @throws \Interop\Container\Exception\ContainerException
     */
    public function getApiPermissionsService()
    {
        return $this->get('domain.api.permissions.service');
    }

    /**
     * Get the API User application service
     *
     * @throws \Interop\Container\Exception\ContainerException
     */
    public function getApiUserApplicationService()
    {
        return $this->get('application.api.user.service');
    }

    /**
     * Get the User application service
     *
     * @throws \Interop\Container\Exception\ContainerException
     */
    public function getUserApplicationService()
    {
        return $this->get('application.user.service');
    }

    /**
     * @return mixed
     * @throws \Interop\Container\Exception\ContainerException
     */
    public function getMailerService()
    {
        return $this->get('application.mailer');
    }

    /**
     * @return mixed
     * @throws \Interop\Container\Exception\ContainerException
     */
    public function getSettingsService()
    {
        return $this->get('domain.settings.service');
    }
}
© 2026 GrazzMean-Shell