Comments (9)
No problem working on it now.
These are interesting, been mainly using utility classes for things like this but these are actually inside a helper. The Helper element I'm working on should help with these two:
- autoParagraph => TextHelper::autoParagraph()
- autoLinkUrls => TextHelper::autoLinkUrls()
from legacy-twig-view.
slightly unrelated
why is number_format not numberFormat
I seems the convention is camelBacked instead of under_scored for 99% of the methods.
from legacy-twig-view.
the newer ones seem missing as filter:
dasherize
maps toCake\Utility\Inflector::dasherize()
- slug should be Text:slug() as Inflector::slug() is deprecated
also:
- autoParagraph => TextHelper::autoParagraph()
- autoLinkUrls => TextHelper::autoLinkUrls()
Will add those through a PR, or are you already working on it?
slightly unrelated
why is number_format not numberFormat
I seems the convention is camelBacked instead of under_scored for 99% of the methods.
Sounds like a good target to fix in the release for cake4
from legacy-twig-view.
Nah, I am busy otherwise. Thanks for looking into it.
from legacy-twig-view.
slug
should be Text:slug() as Inflector::slug() is deprecated
Methods look rather different, is the outcome always the same regardless of which I use?
from legacy-twig-view.
Methods look rather different, is the outcome always the same regardless of which I use?
For amost all practical uses cases it's the same.
from legacy-twig-view.
I tested it and it looked quite similar in my cases, but if we want to make sure for all cases, maybe we should add one and deprecate the other.
from legacy-twig-view.
Was expecting Inflector::slug()
to use Text::slug()
internally due to the deprecation
from legacy-twig-view.
Ok 4.3.6
has been released with the dasherize + @ADmad deprication notice bug fix.
from legacy-twig-view.
Related Issues (20)
- Deprecation error while running cake bake HOT 1
- Dependabot can't resolve your PHP dependency files HOT 2
- Deprecations warnings HOT 4
- Using include function HOT 1
- Update composer.json to allow twig 3.0 HOT 15
- Dependabot couldn't fetch the branch/reference for cakephp/cakephp-codesniffer
- Unknown "getVars" function HOT 6
- Call to a member function loadTemplate() on null HOT 1
- Disable Twig cache in debug mode
- Align travis and composer scripts with cakephp
- Move to cakephp namespace with backwards compatible alias
- Align phpcs settings HOT 1
- Align code coverage with cakephp
- The unit tests will be failed on CakePHP 4.1.x version HOT 2
- update links
- Issue with Twig when trying to bake in cakephp 3.x HOT 1
- Name conflict with Twig default filter HOT 4
- Roadmap v5.0 HOT 31
- mb_convert_encoding(): Illegal character encoding specified HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from legacy-twig-view.