Contao\CoreBundle\Composer\ScriptHandler::getBinDir PHP Method

getBinDir() private static method

Returns the bin directory.
private static getBinDir ( Composer\Script\Event $event ) : string
$event Composer\Script\Event
return string
    private static function getBinDir(Event $event)
    {
        $extra = $event->getComposer()->getPackage()->getExtra();
        // Symfony assumes the new directory structure if symfony-var-dir is set
        if (isset($extra['symfony-var-dir']) && is_dir($extra['symfony-var-dir'])) {
            return isset($extra['symfony-bin-dir']) ? $extra['symfony-bin-dir'] : 'bin';
        }
        return isset($extra['symfony-app-dir']) ? $extra['symfony-app-dir'] : 'app';
    }