apns = $apns; parent::__construct(); } protected function configure() { $this->setName('apns:test_reg') ->setDescription('Test new format for Apple Push Notification.') ->setHelp('Test new format for Apple Push Notification.') ->addArgument('push_id', InputArgument::REQUIRED, 'push_id'); } protected function execute(InputInterface $input, OutputInterface $output) { $push_id = $input->getArgument('push_id'); $this->apns->sendReg($push_id, 'Test Delay', 'Body'); return 0; } }