Proyectos de Subversion LeadersLinked - Services

Rev

Rev 1 | Rev 324 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 290
Línea 11... Línea 11...
11
use Laminas\Log\LoggerInterface;
11
use Laminas\Log\LoggerInterface;
12
use Laminas\Mvc\I18n\Translator;
12
use Laminas\Mvc\I18n\Translator;
13
use LeadersLinked\Cache\CacheInterface;
13
use LeadersLinked\Cache\CacheInterface;
Línea 14... Línea 14...
14
 
14
 
15
 
15
 
16
class CheckDefaultFollowerAndConnectionForDefaultNetworkCommand extends Command
16
class TestCommand extends Command
17
{
17
{
18
    /**
18
    /**
19
     *
19
     *
Línea 70... Línea 70...
70
    
70
    
71
    protected function execute(InputInterface $input, OutputInterface $output) : int
71
    protected function execute(InputInterface $input, OutputInterface $output) : int
72
    {
72
    {
Línea -... Línea 73...
-
 
73
        $output->writeln('Inicio del proceso');
-
 
74
        
-
 
75
        $source = 'data/background-61af7d08d1156.png';
-
 
76
        $target_path = 'test';
-
 
77
        $target_code = '001';
-
 
78
        $target_filename = 'background-61af7d08d1156.png';
-
 
79
        $target_width = 300;
-
 
80
        $target_height = 300;
-
 
81
        $crop_to_dimensions = false;
-
 
82
        $unlink_source = false;
-
 
83
        
Línea 73... Línea 84...
73
        $output->writeln('Inicio del proceso');
84
        $image = \LeadersLinked\Library\Image::getInstance($this->config);
Línea -... Línea 85...
-
 
85
        $response = $image->uploadImageChangeSize($source, $target_path, $target_code, $target_filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source);
-
 
86
 
74
        
87
 
75
 
88