Menu

## CreateAuthenticationBackend extends BaseCommand
in package

CreateAuthenticationBackend.php : 21

For Creating a new authentication backend in the authenticationBackends directory by running `pionia gen:auth {name}`

##### Tags

since
  1.1.6

  This command now writes the generated file to the `authentications` directory in your app

author

  Jet - ezrajet9@gmail.com

### Table of Contents

#### Properties

$description : string
$name : string
$title : string

#### Methods

__construct() : mixed
configure() : void
connection() : Database
  Returns the current database connection
execute() : int

### Properties

#### $description

CreateAuthenticationBackend.php : 24
`protected static string $description = 'Generates an authentication backend for pionia app.'`

#### $name

CreateAuthenticationBackend.php : 25
`protected static string $name = 'gen:auth'`

#### $title

CreateAuthenticationBackend.php : 23
`protected static string $title = 'Adds a new authentication backend'`

### Methods

#### __construct()

BaseCommand.php : 18
`public __construct([string|null $name = null ]) : mixed`

##### Parameters

$name : string|null = null

#### configure()

CreateAuthenticationBackend.php : 27
`protected configure() : void`

#### connection()

BaseCommand.php : 32

Returns the current database connection

`protected static connection([string|null $db = null ]) : Database`

##### Parameters

$db : string|null = null

##### Tags

throws
  Exception
author

  Jet - ezrajet9@gmail.com

##### Return values

Database

#### execute()

CreateAuthenticationBackend.php : 37
`protected execute(InputInterface $input, OutputInterface $output) : int`

##### Parameters

$input : InputInterface
$output : OutputInterface

##### Return values

int

## Search results