PHP code example of chaplean / location-bundle
1. Go to this page and download the library: Download chaplean/location-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chaplean / location-bundle example snippets
public function postUp(Schema $schema)
{
/** @var Kernel $kernel */
$kernel = $this->container->get('kernel');
$application = new Application($kernel);
$application->setAutoExit(false);
$exitCode = $application->run(
new ArrayInput(
[
'command' => 'location:load:cities'
]
)
);
$this->abortIf($exitCode !== 0, 'see Exception above ^');
}