mac-cain13 / notificato

Takes care of Apple push notifications (APNS) in your PHP projects.
MIT License
224 stars 44 forks source link

Notificare class to abstract some classes away #24

Closed mac-cain13 closed 11 years ago

mac-cain13 commented 11 years ago

Maybe it's a nice idea to create a Notificare class that prevents you from instantiating all kinds of other classes and make life easier. When you don't want to do funky stuff like use your own Message class or override other things it could be a nice addition.

This would be for example much easier then instantiating a Certificate/MessageFactory/Sender/Feedback object yourself:

$notificare = new Notificare('certpath', 'passphrase', 'environment');
$message = $notificare->createMessage('deviceid');
$message->setSomething();
$notificare->send($message);
$tuples = $notificare->feedback();

Questions to think about are: