For Bash, startup scripts work as follows. Read down the appropriate column. Executes A, then B, then C, etc. The B1, B2, B3 means it executes only the first of those files found.
Interactive login | Interactive non-login | Script |
---|
#!/bin/bash | |
daemonize () { "$@"& pid="$!"; trap "kill -INT $pid" INT TERM; while kill -0 $pid > /dev/null 2>&1; do wait $pid; ec="$?"; done; exit $ec;}; |
[xdebug] | |
zend_extension="xdebug.so" | |
xdebug.coverage_enable=1 | |
xdebug.default_enable=1 | |
xdebug.extended_info=1 | |
xdebug.file_link_format="phpstorm://open?file=%f&line=%l" | |
xdebug.max_nesting_level=256 | |
xdebug.scream=0 |
#!/usr/bin/env bash | |
# https://developer.apple.com/documentation/usernotifications/sending_push_notifications_using_command-line_tools#3694579 | |
TEAM_ID=Team ID | |
TOKEN_KEY_FILE_NAME=path to the private key file | |
AUTH_KEY_ID=your key identifier | |
TOPIC=App ID | |
DEVICE_TOKEN=device token for your app | |
APNS_HOST_NAME=api.sandbox.push.apple.com |
<?php | |
namespace Symfony\Component\DependencyInjection\Loader\Configurator; | |
use Symfony\Config\DoctrineConfig; | |
use Symfony\Config\FrameworkConfig; | |
return static function (DoctrineConfig $doctrine, ContainerConfigurator $container, FrameworkConfig $framework): void { | |
$dbal = $doctrine->dbal(); | |
$dbal->defaultConnection('default'); |
<?php | |
declare(strict_types=1); | |
use PHPUnit\Framework\Constraint\Callback; | |
use PHPUnit\Framework\Constraint\Constraint; | |
use function array_column; | |
use function count; |