Code Monkey home page Code Monkey logo

magento2-tutorial-proxy-objects's People

Contributors

astorm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

magento2-tutorial-proxy-objects's Issues

Segmentation fault (core dumped) - infinite call

I do make 2 file registation.php
remove comment in di.xml like this

<!-- Proxies as preferences won't work -->
<preference
    for="Pulsestorm\TutorialProxy1\Model\SlowLoading"
    type="Pulsestorm\TutorialProxy1\Model\SlowLoading\Proxy"
/>

and remove comment in Testbed.php

class Testbed extends Command
{
....
    protected function execute(InputInterface $input, OutputInterface $output)
    {
//        $this->installedCheck($output);
         $service = $this->createService($output);
         $this->sayHelloWithFastObject($service, $output);
         $this->sayHelloWithSlowObject($service, $output);
    }
}

But
Untitled
I have try all of those but it not work
php bin/magento c:c
php bin/magento c:f
rm -rf generated/
rm -rf var/cache/
delete vendor, composer install

Segmentation Fault

Hey Alan,

Thanks for your tutorials, i enjoy them.
I've tried to enable proxy as you wrote in the article.
The proxy class has been generated.
When i run it i getting segmentation fault, please read bellow:

$ php bin/magento ps:tutorial-proxy
About to Create Service
Constructing FastLoading Object
Constructing SlowLoading Object
Created Service, approximate time to load: 3005.1239 ms

About to say hello with fast object
Hello
Said hello with fast object, approximate time to load: 0.0112 ms

About to say hello with slow object
Segmentation fault: 11

Do you have any guessing why it happens?
Thanks for your reply

di.xml differs

Hi

I am noticing that your di.xml
is different to the one you refer in your blog post.
Actually there is no change to to the arguments of the Example class constructor in that di.xml file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.