Sergei Predvoditelev
Sergei Predvoditelev
Returns `CurrentRoute|Route` is confused. By fact, `CurrentRoute` is `RouteProvider`.
I like idea clearly separate type casting "db → php" and "php → db". May be split typecast class to two classes: - `DbTypeCaster` - converts a value from its...
The interface should probably also provide information about which exceptions it is suitable for.
@fcnybok can you show dump of `$context`?
1) We can add support nested arrays, for example "{foo.bar}" will be use `$context['foo']['bar']` value. 2) Need correctly process non-string values without throw error / exception / warning.
It's should be optional and disabled for cases where user own resolve this problem on application level.
User can override rules via `withSingularizeRules()` and `withPluralizeRules()` methods, and use regular expressions with different flags. It is do not allow us use `CombinedRegexp` here.
> I didn't get you `CombinedRegexp` uses same flags for all expressions, but inflector allow use expressions with different flags.
In router url generator already support this via `setUriPrefix()` method. The problem is in `yiisoft/assets` package that does not take it into account. Seems, adding router dependency to assets package...
Looks good for me. Instead of code: ```php $fullName = \Yiisoft\Arrays\ArrayHelper::getValue($user, function ($user, $defaultValue) { return $user->firstName . ' ' . $user->lastName; }); ``` we can use: ```php $fullName =...