# |
Sep 3rd 2019, 14:28 |
jh |
like say patchEntity, save etc |
# |
Sep 3rd 2019, 14:27 |
jh |
<3 |
# |
Sep 3rd 2019, 14:27 |
jh |
but if a function is used a a lot, then configuration via options is sexy... saves a lot of time |
# |
Sep 3rd 2019, 14:27 |
jh |
@dereuromark in regards to that ticket and api surface... if a function is used not so often I prefer api surface as it is easy to find, easy to use, hard to break... aka 1000 different functions used 1 each time... better than 1 function with 1000 parameters |
# |
Sep 3rd 2019, 14:23 |
dereuromark |
but adding this per user on login could be slow ;) |
# |
Sep 3rd 2019, 14:22 |
dereuromark |
I thought I once added this to tinyauth as "init". to parse existing into a file for easier adjustment then |
# |
Sep 3rd 2019, 14:21 |
alexdd55976 |
i was thinking about creating json files with some controller/action trees and parse them during login |
# |
Sep 3rd 2019, 14:20 |
jotpe |
@alexdd55976 I'll let you know, if I have a asolution |
# |
Sep 3rd 2019, 14:18 |
alexdd55976 |
@jotpe if you have solution, pls let me know... i need to introduce authorization to the project soon... right now around 120 controllers. |
# |
Sep 3rd 2019, 14:15 |
alexdd55976 |
lucky bastard :) |
# |
Sep 3rd 2019, 14:13 |
jotpe |
I'll have a look! |
# |
Sep 3rd 2019, 14:12 |
jotpe |
yes, and I have ~30Controllers to manage |
# |
Sep 3rd 2019, 14:11 |
royalty |
but then you'd have to manage the mapping rather than using the built in mapping |
# |
Sep 3rd 2019, 14:10 |
royalty |
you can map multiple models/controllers to a single policy |
# |
Sep 3rd 2019, 14:10 |
jotpe |
A PolicyResolver with a "Default" Policy? |
# |
Sep 3rd 2019, 14:09 |
jotpe |
For the Authorization Plugin: I have a App with a backend and lots of BE Controllers/Actions. I don't want to write a Policy for every Entity/Table with the same rules. For now I created a BasePolicy and extend every Entity/Table Policy with the BasePolicy, which led to some class stubs. What would be a smarter approach to that? |
# |
Sep 3rd 2019, 14:06 |
dereuromark |
I have some follow ups :slightly_smiling_face: https://github.com/dereuromark/cakephp-ide-helper/issues/143 Small 1h chunks |
# |
Sep 3rd 2019, 14:04 |
jotpe |
@dereuromark whoops. Sorry, i wanted to contribute, but no time atm :S Thanks for your work! |
# |
Sep 3rd 2019, 13:45 |
javier.villanueva |
i try it |
# |
Sep 3rd 2019, 13:45 |
javier.villanueva |
thanks |
# |
Sep 3rd 2019, 13:44 |
javier.villanueva |
uhm ok |
# |
Sep 3rd 2019, 13:44 |
ricksaccous |
if the plugin is built well you should be able to feed your custom class that extends the plugin class to the plugin |
# |
Sep 3rd 2019, 13:43 |
ricksaccous |
you can extend it and use your class instead |
# |
Sep 3rd 2019, 13:43 |
javier.villanueva |
i want change the behaviour of a function in it |
# |
Sep 3rd 2019, 13:43 |
ricksaccous |
@javier.villanueva are you sure you want to over-ride or just extend? |
# |
Sep 3rd 2019, 13:42 |
ricksaccous |
no |
# |
Sep 3rd 2019, 13:41 |
javier.villanueva |
for override classes in plugin..., I need copy all plugin and duplicate in /plugins? |
# |
Sep 3rd 2019, 13:33 |
conehead |
But don't worry...I will leave it off now. Screw xdebug |
# |
Sep 3rd 2019, 13:31 |
conehead |
@spriz Actually this appears when xdebug is enabled :S |
# |
Sep 3rd 2019, 13:30 |
neon1024 |
Stupid EntityTrait with it’s magic methods! :male_mage: |
# |
Sep 3rd 2019, 13:30 |
neon1024 |
`$entity->set('_new', true);` right? |
# |
Sep 3rd 2019, 13:05 |
admad |
@jeremy.halin have a default locale and show/redirect to that |
# |
Sep 3rd 2019, 12:44 |
conehead |
Just trying to find out |
# |
Sep 3rd 2019, 12:41 |
spriz |
could it be some cache whacking up? |
# |
Sep 3rd 2019, 12:41 |
spriz |
@conehead are those routes cached? |
# |
Sep 3rd 2019, 12:40 |
jeremy.halin |
Hi, what's the best practice to handle translations with fallback language ? For example if multiple translations are available, but not in the current locale (I18n) ? Thanks ! |
# |
Sep 3rd 2019, 12:36 |
conehead |
Okay...fk...now I get the same errors with the normal Fixture lol |
# |
Sep 3rd 2019, 12:35 |
conehead |
Maybe I will give it another shot next week. Just seems strange that changing the fixture screws up the routing somehow |
# |
Sep 3rd 2019, 12:33 |
spriz |
Aww, that sucks! You should throw in an issue at the repo so if anyone stumbles upon it they can see whats up :slightly_smiling_face: |
# |
Sep 3rd 2019, 12:32 |
conehead |
Just switched back and the tests are running just fine |
# |
Sep 3rd 2019, 12:31 |
conehead |
Well guess I cannot use Fixturize. Too many random errors I get :S |