PHP Classes

File: doc/example/app.php

Recommend this page to a friend!
  Classes of Sergii Pryz   NASA Near Earth Orbit API Client   doc/example/app.php   Download  
File: doc/example/app.php
Role: Example script
Content type: text/plain
Description: Example script
Class: NASA Near Earth Orbit API Client
Get near Earth orbit object data with NASA API
Author: By
Last change:
Date: 8 years ago
Size: 515 bytes
 

Contents

Class file image Download
<?php
namespace Picamator\NeoWsClient\Example;

/**
 * App file, general init for all examples
 */

require_once __DIR__ . '/../../vendor/autoload.php';

use
Symfony\Component\DependencyInjection\ContainerBuilder;
use
Symfony\Component\Config\FileLocator;
use
Symfony\Component\DependencyInjection\Loader\YamlFileLoader;

if(!isset(
$container)) {
   
$container = new ContainerBuilder();
   
$loader = new YamlFileLoader($container, new FileLocator(__DIR__));
   
$loader->load('../../config/services.yml');
}