Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 971 Bytes

1-installation.md

File metadata and controls

50 lines (34 loc) · 971 Bytes

Installation

Install process is very simple.

Add the dependency with Composer

$ composer require yokai/security-token-bundle

Enable the bundle

<?php
// config/bundles.php

return [
    // ...
    Yokai\SecurityTokenBundle\YokaiSecurityTokenBundle::class => ['all' => true],
];

Create the tables

The bundle requires 2 tables to store your tokens. You need to create these in your project:

Using a doctrine migration (recommended)

$ bin/console doctrine:migrations:diff

You will have a migration file generated with the following tables being created:

CREATE TABLE yokai_security_token ...
CREATE TABLE yokai_security_token_usage ...

Using the doctrine schema update command (not recommended)

$ bin/console doctrine:schema:update --force

« READMEConfiguration »