1#!/usr/bin/env php
2<?php
3/**
4 * @link      http://github.com/zendframework/zend-servicemanager for the canonical source repository
5 * @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com)
6 * @license   http://framework.zend.com/license/new-bsd New BSD License
7 */
8
9namespace Zend\ServiceManager;
10
11// Setup/verify autoloading
12if (file_exists($a = getcwd() . '/vendor/autoload.php')) {
13    require $a;
14} elseif (file_exists($a = __DIR__ . '/../../../autoload.php')) {
15    require $a;
16} elseif (file_exists($a = __DIR__ . '/../vendor/autoload.php')) {
17    require $a;
18} else {
19    fwrite(STDERR, 'Cannot locate autoloader; please run "composer install"' . PHP_EOL);
20    exit(1);
21}
22
23$command = new Tool\ConfigDumperCommand($argv[0]);
24$status = $command(array_slice($argv, 1));
25exit($status);
26