<?php

namespace WordpressModels\Command;

use WordpressModels\DependencyInjection\CliCommandAttributes\Attributes\WpCliCommand;

#[WpCliCommand('container',
    'Manage the service container',
    "Manage the service container")]
class ContainerCommands
{

    #[WpCliCommand(
        'invalidate',
        'Invalidate the container cache',
        "Removes the cached service container"
    )]
    public function invalidate()
    {
        global $wpmc;
        $wpmc->invalidate();
    }

}