spryker/app-kernel

AppKernel module

0.2.1 2024-01-25 14:13 UTC

This package is auto-updated.

Last update: 2024-05-24 22:49:57 UTC


README

Latest Stable Version Minimum PHP Version

Provides SyncAPI and AsyncAPI schema files and the needed code to make the Mini-Framework an App.

Installation

composer require spryker/app-kernel

Configure

App Identifier

config/Shared/config_default.php

use Spryker\Shared\AppKernel\AppConstants;

$config[AppConstants::APP_IDENTIFIER] = getenv('APP_IDENTIFIER') ?: 'hello-world';

Testing the AppKernel

You can test the AppKernel as usual with Codeception. Before that you need to run some commands:

tests/bin/console app-kernel:setup
tests/bin/console transfer:generate
tests/bin/console transfer:databuilder:generate
tests/bin/console propel:install
tests/bin/console dev:ide-auto-completion:zed:generate
tests/bin/console dev:ide-auto-completion:glue:generate
tests/bin/console dev:ide-auto-completion:glue-backend:generate

With these commands you've set up the AppKernel and can start the tests

vendor/bin/codecept build
vendor/bin/codecept run