Burgomaster::startSection PHP Méthode

startSection() public méthode

This makes the debug messages used in your script more meaningful and adds context when things go wrong. Be sure to call endSection() when you have finished a section of your packaging script.
public startSection ( string $section )
$section string Part of the packager that is running
    public function startSection($section)
    {
        $this->sections[] = $section;
        $this->debug('Starting');
    }

Usage Example

Exemple #1
0
<?php

require __DIR__ . '/../vendor/autoload.php';
$packager = new \Burgomaster(__DIR__ . '/artifacts/staging', __DIR__ . '/../');
$packager->exec('rm -rf ' . __DIR__ . '/artifacts/xsolla.*');
$packager->recursiveCopy('src', 'Xsolla/SDK');
$packager->recursiveCopy('vendor/guzzle/guzzle/src/Guzzle', 'Guzzle', array('php', 'pem'));
$packager->recursiveCopy('vendor/symfony/event-dispatcher', 'Symfony/Component/EventDispatcher');
$packager->recursiveCopy('vendor/symfony/http-foundation', 'Symfony/Component/HttpFoundation');
$packager->createAutoloader(array(), 'xsolla-autoloader.php');
$packager->createPhar(__DIR__ . '/artifacts/xsolla.phar', null, 'xsolla-autoloader.php');
$packager->createZip(__DIR__ . '/artifacts/xsolla.zip');
$packager->startSection('test-phar');
$packager->exec('php ' . __DIR__ . '/test-phar.php');
$packager->endSection();
$packager->exec('rm -rf ' . __DIR__ . '/artifacts/staging');
All Usage Examples Of Burgomaster::startSection