for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of gpupo component
* Created by Gilmar Pupo <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* For more information, see <http://www.g1mr.com/>.
*/
namespace Gpupo\NetshoesSdk\Console;
use Gpupo\CommonSdk\Console\AbstractApplication;
use Gpupo\NetshoesSdk\Factory;
class Application extends AbstractApplication
{
protected $commonParameters = [
[
'key' => 'client_id',
],
'key' => 'access_token',
'key' => 'env',
'options' => ['sandbox', 'api'],
'default' => 'sandbox',
'name' => 'Version',
'key' => 'sslVersion',
'options' => ['SecureTransport', 'TLS'],
'default' => 'SecureTransport',
'name' => 'SSL Version',
'key' => 'registerPath',
'default' => false,
]
];
protected function getLogFilePath()
return 'var/logs/console.log';
}
public function factorySdk(array $options)
$options['version'] = $options['env'];
return Factory::getInstance()->setup($options, $this->factoryLogger());
public function appendCommand($name, $description, array $definition = [])
return $this->register($name)
->setDescription($description)
->setDefinition($this->factoryDefinition($definition));