From 8f4247756f5c16d7d534fbc20e71a48dd8d78cc3 Mon Sep 17 00:00:00 2001 From: Doug Wright Date: Wed, 21 Sep 2016 20:01:13 +0100 Subject: [PATCH] Update intro notes to reflect a V2 API change (fixes #55) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e96e5a5a..d361600c 100644 --- a/README.md +++ b/README.md @@ -102,8 +102,8 @@ Basic usage then looks something like the below: $items->insert(new TestItem('Item 2', 297, 296, 2, 500)); $items->insert(new TestItem('Item 3', 296, 296, 4, 290)); - $packer = new Packer(); - $packedBox = $packer->packIntoBox($box, $items); + $volumePacker = new VolumePacker($box, $items); + $packedBox = $volumePacker->pack(); /* $packedBox->getItems() contains the items that fit */ ```