Files
streamline-emr/docker/streamline-src/vendor/owen-it/laravel-auditing/src/Console/AuditResolverCommand.php
T
alec.turner a424394109 Build modified streamline images
The official image from streamline does not currently work for the arm64
platform. As a temporary measure, the source code and docker build scripts
have been lifted from the official images and are used to build locally.

Some additional modifications are made to reduce overall image size, these
are documented in docker/README.md
2024-03-10 16:17:50 -07:00

46 lines
870 B
PHP

<?php
namespace OwenIt\Auditing\Console;
use Illuminate\Console\GeneratorCommand;
class AuditResolverCommand extends GeneratorCommand
{
/**
* {@inheritdoc}
*/
protected $name = 'auditing:audit-resolver';
/**
* {@inheritdoc}
*/
protected $description = 'Create a new audit resolver';
/**
* {@inheritdoc}
*/
protected $type = 'AuditResolver';
/**
* {@inheritdoc}
*/
protected function getStub()
{
return __DIR__ . '/../../stubs/resolver.stub';
}
/**
* {@inheritdoc}
*/
protected function getDefaultNamespace($rootNamespace)
{
return $rootNamespace . '\AuditResolvers';
}
public function handle()
{
$this->info('Add your new resolver to the resolvers array in audit.php config file.');
return parent::handle();
}
}