Skip to content

Display a warning if someone tries to start the router from anything other than the CLI #225

@davidwdan

Description

@davidwdan
if (PHP_SAPI !== 'cli') {
    echo 'Warning: The Thruway Router should be invoked via the CLI version of PHP, not the ' . PHP_SAPI . ' SAPI' . PHP_EOL;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions