# |
Sep 17th 2019, 14:58 |
spriz |
Aha, what surprised me was that rather than using `I18n::getLocale()`, some of the code actually reads directly from `ini_get('intl.default_locale')` rather :shrug: |
# |
Sep 17th 2019, 14:32 |
neon1024 |
Usually in these cases I get myself in a muddle ;) |
# |
Sep 17th 2019, 14:32 |
peppejaripappalardo |
@neon1024 thx |
# |
Sep 17th 2019, 14:32 |
neon1024 |
Perhaps the test-cases would give you more of an idea of the expected functionality |
# |
Sep 17th 2019, 14:31 |
spriz |
I am not sure if it is a bug, or if it just me expecting weirdo things |
# |
Sep 17th 2019, 14:31 |
neon1024 |
Sounds like a good test-case :slightly_smiling_face: |
# |
Sep 17th 2019, 14:31 |
spriz |
(which both of those methods fall back to in case nothing is set already) |
# |
Sep 17th 2019, 14:31 |
neon1024 |
`parseFloat(format())` ? |
# |
Sep 17th 2019, 14:30 |
spriz |
just using `intl.defaultlocale` |
# |
Sep 17th 2019, 14:30 |
spriz |
yeah but without any arguments |
# |
Sep 17th 2019, 14:30 |
neon1024 |
As they might be converted into any format |
# |
Sep 17th 2019, 14:30 |
neon1024 |
I would expect that strings produced by `format()` wouldn’t be immediatly compatible |
# |
Sep 17th 2019, 14:28 |
spriz |
Am I wrong in expecting the `Number::parseFloat()` should accept the same format/locale stuff as something generated by `Number::format()` ,:) :cold_sweat: |
# |
Sep 17th 2019, 14:27 |
neon1024 |
You’ll probably find that some of your existing dependancies do not allow 4.x release versions |
# |
Sep 17th 2019, 14:22 |
peppejaripappalardo |
can simply modify composer.json? |
# |
Sep 17th 2019, 14:21 |
peppejaripappalardo |
i get this error while tryng upgrade cake from 3.8 to 4 beta3 `satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.2, 3.8.3, 3.8.4] but these conflict with your requirements or minimum-stability.` |
# |
Sep 17th 2019, 14:09 |
daniel.upshaw |
That'll do it :slightly_smiling_face: Thanks for the info |
# |
Sep 17th 2019, 14:09 |
daniel.upshaw |
Nice |
# |
Sep 17th 2019, 14:09 |
daniel.upshaw |
:slightly_smiling_face: |
# |
Sep 17th 2019, 14:03 |
jotpe |
I didn't set 'signed' => false when creating the roles table. |
# |
Sep 17th 2019, 14:03 |
technofection |
I got it fixed.. I had several classes in one file and that caused the issue.. when I seperated them in different files it worked! |
# |
Sep 17th 2019, 14:03 |
ra7bi |
if anyone using this pluing https://book.cakephp.org/elasticsearch/ please explain me , why ->get(3) working but ->find()->where() not working |
# |
Sep 17th 2019, 13:59 |
technofection |
I have 3 folders like Order PaymentGateway Tuition, I can use Tuition class from within Order, but cannot use PaymentGateway |
# |
Sep 17th 2019, 13:59 |
daniel.upshaw |
Oh... are you saying that one of your `custom` classes is loaded, but not the other? |
# |
Sep 17th 2019, 13:58 |
daniel.upshaw |
Where MyClassName is your custom class |
# |
Sep 17th 2019, 13:58 |
daniel.upshaw |
Try this... `use App\vendor\Email\MyClassName;` |
# |
Sep 17th 2019, 13:57 |
technofection |
Yes, I can access one class but not another : |
# |
Sep 17th 2019, 13:57 |
daniel.upshaw |
But since the `autoload.php` file is loaded, composer can affect autoloading for the entire project |
# |
Sep 17th 2019, 13:57 |
daniel.upshaw |
But since you made your own custom libraries, that sounds like it's separate from composer |
# |
Sep 17th 2019, 13:57 |
ra7bi |
i guss |
# |
Sep 17th 2019, 13:57 |
daniel.upshaw |
The first vendor path |
# |
Sep 17th 2019, 13:57 |
ra7bi |
vendor/composer/installed.json |
# |
Sep 17th 2019, 13:52 |
technofection |
In which path does composer create the autoload file? |
# |
Sep 17th 2019, 13:48 |
daniel.upshaw |
That line is saying to autoload classes in `src/` in the namespace `App` |
# |
Sep 17th 2019, 13:47 |
technofection |
Yes, it's there in composer.json |
# |
Sep 17th 2019, 13:47 |
daniel.upshaw |
Or just `src/Email` <= If this, then you should be able to `use App\Email;` |
# |
Sep 17th 2019, 13:47 |
daniel.upshaw |
So you might do a plugin instead, is one option |
# |
Sep 17th 2019, 13:47 |
daniel.upshaw |
See this line in your `composer.json`: ``` "autoload": { "psr-4": { "App\\": "src/" } },``` |
# |
Sep 17th 2019, 13:46 |
technofection |
These are all custom built.. like src/vendor/Core src/vendor/Email and ao |
# |
Sep 17th 2019, 13:46 |
daniel.upshaw |
Maybe you could have `src/Util/MyLibrary` |
# |
Sep 17th 2019, 13:46 |
daniel.upshaw |
What are the libraries in the src/ vendor called? |