Skip to content

adding container #1

@mrfarhadir

Description

@mrfarhadir

hello, I'm new to slim framework before using your package for encryption and decryption I used to run my api with slim as below :

$app = new \Slim\App($config);

$container = $app->getContainer();


$capsule = new \Illuminate\Database\Capsule\Manager;
$capsule->addConnection($container['settings']['db']);
$capsule->setAsGlobal();
$capsule->bootEloquent();

$capsule->getContainer()->singleton(
  Illuminate\Contracts\Debug\ExceptionHandler::class,
  App\Exceptions\Handler::class
);

and in README.md you passed $container as parameter to app now How I can pass my $config as parameter and $container to app to be able to use your package for encryption/decryption

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions