File tree 4 files changed +2
-15
lines changed
4 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 30
30
WP_CLI ::add_command ('image-optimize reset ' , ResetCommand::class);
31
31
32
32
WP_CLI ::add_command ('image-optimize find ' , FindCommand::class);
33
- WP_CLI ::add_command ('image-optimize wp-admin ' , WPAdminCommand::class);
34
- WP_CLI ::add_command ('image-optimize plugins ' , PluginsCommand::class);
35
33
WP_CLI ::add_command ('image-optimize mu-plugins ' , MUPluginsCommand::class);
34
+ WP_CLI ::add_command ('image-optimize plugins ' , PluginsCommand::class);
36
35
WP_CLI ::add_command ('image-optimize themes ' , ThemesCommand::class);
36
+ WP_CLI ::add_command ('image-optimize wp-admin ' , WPAdminCommand::class);
37
37
WP_CLI ::add_command ('image-optimize wp-includes ' , WPIncludesCommand::class);
Original file line number Diff line number Diff line change 3
3
4
4
namespace TypistTech \ImageOptimizeCommand \CLI \Commands ;
5
5
6
- use Symfony \Component \Filesystem \Filesystem ;
7
- use Symfony \Component \Finder \Finder ;
8
- use TypistTech \ImageOptimizeCommand \CLI \LoggerFactory ;
9
- use TypistTech \ImageOptimizeCommand \Operations \Find ;
10
- use TypistTech \ImageOptimizeCommand \Operations \Optimize ;
11
- use TypistTech \ImageOptimizeCommand \OptimizerChainFactory ;
12
6
use WP_CLI ;
13
7
14
8
class WPAdminCommand
Original file line number Diff line number Diff line change 3
3
4
4
namespace TypistTech \ImageOptimizeCommand \CLI \Commands ;
5
5
6
- use Symfony \Component \Filesystem \Filesystem ;
7
- use Symfony \Component \Finder \Finder ;
8
- use TypistTech \ImageOptimizeCommand \CLI \LoggerFactory ;
9
- use TypistTech \ImageOptimizeCommand \Operations \Find ;
10
- use TypistTech \ImageOptimizeCommand \Operations \Optimize ;
11
- use TypistTech \ImageOptimizeCommand \OptimizerChainFactory ;
12
6
use WP_CLI ;
13
7
14
8
class WPIncludesCommand
Original file line number Diff line number Diff line change 6
6
7
7
use TypistTech \ImageOptimizeCommand \LoggerInterface ;
8
8
use WP_CLI ;
9
- use function WP_CLI \Utils \report_batch_operation_results ;
10
9
11
10
class Logger implements LoggerInterface
12
11
{
You can’t perform that action at this time.
0 commit comments