# |
Mar 8th 2018, 15:39 |
savant |
I have actual work to do |
# |
Mar 8th 2018, 15:38 |
savant |
Idk I’m pretty over these sorts of things |
# |
Mar 8th 2018, 15:38 |
neon1024 |
Tried reading the Command pattern chapter too, but it’s a bit confusing |
# |
Mar 8th 2018, 15:37 |
savant |
want more patterns? use more finals |
# |
Mar 8th 2018, 15:37 |
savant |
like I said |
# |
Mar 8th 2018, 15:37 |
neon1024 |
I ended up there after reading about the Decorator pattern |
# |
Mar 8th 2018, 15:37 |
neon1024 |
Give it a read ;) |
# |
Mar 8th 2018, 15:37 |
savant |
ive never found it useful - especially not in a library context - except to freeze code so that your language’s VM can further optimize it |
# |
Mar 8th 2018, 15:36 |
savant |
you declare final classes because you like implementing lots of patterns in your code |
# |
Mar 8th 2018, 15:36 |
savant |
never |
# |
Mar 8th 2018, 15:35 |
neon1024 |
Interesting article, https://ocramius.github.io/blog/when-to-declare-classes-final/ |
# |
Mar 8th 2018, 15:34 |
birdy247 |
rapido |
# |
Mar 8th 2018, 15:34 |
birdy247 |
wow |
# |
Mar 8th 2018, 15:34 |
savant |
just released 3.8.0 |
# |
Mar 8th 2018, 15:33 |
savant |
oo you’re right |
# |
Mar 8th 2018, 15:33 |
savant |
THEN WHO WAS PHONE |
# |
Mar 8th 2018, 15:32 |
birdy247 |
Then wheres it gone wrong? |
# |
Mar 8th 2018, 15:32 |
birdy247 |
and composer install is good |
# |
Mar 8th 2018, 15:32 |
savant |
thats not whats in 3.7 of the plugin |
# |
Mar 8th 2018, 15:32 |
birdy247 |
My lock file says 3.7 |
# |
Mar 8th 2018, 15:31 |
savant |
yeah thats not 3.7 of the plugin |
# |
Mar 8th 2018, 15:31 |
birdy247 |
File uploaded https://cakesf.slack.com/files/U0T295QA3/F9MJ3C3HU/-.php / https://slack-files.com/T053DPNCM-F9MJ3C3HU-267a269373 |
# |
Mar 8th 2018, 15:31 |
savant |
not just the parts you thought I might find interesting |
# |
Mar 8th 2018, 15:31 |
savant |
the whole file |
# |
Mar 8th 2018, 15:31 |
birdy247 |
but surley this will only ever have 2 args? |
# |
Mar 8th 2018, 15:30 |
birdy247 |
I just dumped out $this->data and $this->settings |
# |
Mar 8th 2018, 15:30 |
birdy247 |
File uploaded https://cakesf.slack.com/files/U0T295QA3/F9L69GA9F/-.php / https://slack-files.com/T053DPNCM-F9L69GA9F-2defc74943 |
# |
Mar 8th 2018, 15:28 |
savant |
can you gist the contents of `/home/vagrant/Apps/clubtrac.local/vendor/josegonzalez/cakephp-upload/src/File/Path/Filename/DefaultTrait.php ` |
# |
Mar 8th 2018, 15:27 |
savant |
oh wow we are |
# |
Mar 8th 2018, 15:27 |
savant |
the plugin is 3.7? |
# |
Mar 8th 2018, 15:27 |
birdy247 |
3.7 |
# |
Mar 8th 2018, 15:26 |
savant |
or rather you’re on an older version of the plugin |
# |
Mar 8th 2018, 15:26 |
savant |
seems like you need more arguments. |
# |
Mar 8th 2018, 15:25 |
birdy247 |
Too few arguments to function App\Model\Table\TenantConfigurationsTable::App\Model\Table\{closure}(), 2 passed in /home/vagrant/Apps/clubtrac.local/vendor/josegonzalez/cakephp-upload/src/File/Path/Filename/DefaultTrait.php on line 19 and exactly 5 expected |
# |
Mar 8th 2018, 15:25 |
savant |
is that the whole exception |
# |
Mar 8th 2018, 15:24 |
birdy247 |
Filename/DefaultTrait.php on line 19 and exactly 5 expected |
# |
Mar 8th 2018, 15:24 |
birdy247 |
but i get an exception |
# |
Mar 8th 2018, 15:24 |
birdy247 |
I am trying the nameCallback |
# |
Mar 8th 2018, 15:24 |
savant |
nice |
# |
Mar 8th 2018, 15:24 |
birdy247 |
I am using your upload plugin :+1: |
# |
Mar 8th 2018, 15:24 |
savant |
hi |