<?php

namespace OfficeBrain\Bundle\AccessManagementBundle\Command;

use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;

/**
 * Sync product Category data command
 *
 * @author OfficeBrain 4220 <info@officebrain.com>
 */
class AccessMasterCommand extends ContainerAwareCommand
{
    const COMMAND_NAME = 'office_brain:access_rule:add:master';

    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        $this
            ->setName(self::COMMAND_NAME)
            ->setDescription('Command to sync Access Master data');
    }

    /**
     * {@inheritdoc}
     */
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        //$productId =(int) $input->getOption('productId', null);
        $accessManager =$this->getContainer()->get('office_brain_access_management_access_manager');
        $accessManager->insertAccessMasterList();
    }
}
