OOPS conepts in PHP in Hindi (Dependency Injection) | Part-8

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 74

  • @TanujMandale
    @TanujMandale 8 років тому +1

    Hi Rahul,
    Tum ne ekdum zabardast video banaye hai dost.
    Ek number!!!!
    Zakass!!!
    Hats off yaar.

  • @ayazqureshi5319
    @ayazqureshi5319 3 роки тому

    Very useful content.

  • @jayantpandey9407
    @jayantpandey9407 5 років тому +1

    Good job.

  • @PawanSingh-rz1lg
    @PawanSingh-rz1lg 4 роки тому

    Very good video, thanks

  • @vijaypandey3262
    @vijaypandey3262 6 років тому +1

    So many use of logger logger is confusing... But 2-3 bar me samajh aaya

  • @NanduKumar-wf7pz
    @NanduKumar-wf7pz 5 років тому

    Very nice video.

  • @monodeeproy4939
    @monodeeproy4939 7 років тому

    u r awasome!!! very nice tutorial!!! plz post more complicated logic using opps php all of those used in practical projects in it companies

  • @infytelecom
    @infytelecom 10 років тому

    Fantastic Video Tut....

  • @muhammadsafiullah8428
    @muhammadsafiullah8428 5 років тому

    aik dam mast

  • @vinaykumarg2423
    @vinaykumarg2423 9 років тому +3

    thank you it was little confusing at the end when the concept of dependency injection started, can you add one more example.
    However i appreciate your effort.
    all of your videos were pretty clear for understading basic concepts.
    I am looking for some tutorials on cakephp.
    If you can post them that would be helpful.
    Thanks once again.

    • @PHPinHindi
      @PHPinHindi  9 років тому

      vinay kumar thank you for your valuable feedback. I'll try my best to make the example more clearer. :)

    • @savidhadwad9087
      @savidhadwad9087 6 років тому

      hey even i also have some doubt..though you pass the parameter to constructor still it is dependent on logger class..so wht's the concept of dependency injection here..

  • @VikashKumar-ll5fv
    @VikashKumar-ll5fv 3 роки тому

    Please make video for creational, structural and Behavioural patterns
    with php example

  • @bikashbhandari5608
    @bikashbhandari5608 2 роки тому

    nice bhai

  • @followmanish
    @followmanish 8 років тому +1

    HI rahul , thanks for your video, its appreciable , i have confusion at 10:07 in this video, like what the exactly use of dependency injection,, as we have already create the object of class logger in the class userrofile, now again we are creating object of class log in the line 43, please give a quick reply.
    thanks

  • @bhawanisingh3671
    @bhawanisingh3671 3 роки тому

    Nice video

  • @prasenpatil4993
    @prasenpatil4993 6 років тому

    Rahul bhai..thanks for making it simple..Aur DI Container k baare me kuch dala hoga toh link bhejo na..thanks

  • @arvind85ful
    @arvind85ful 5 років тому

    Please make video about design pattern..

  • @akashvarde6885
    @akashvarde6885 3 роки тому

    GG bro ! thansk for this tut

  • @growingLeesha
    @growingLeesha 7 років тому +1

    Sir you are awesome..... Thankful to you.

  • @hollywoodmovie3398
    @hollywoodmovie3398 6 років тому

    Thanks for your efforts,
    I think it still dependent on logger class, because when I instantiate the user class it's mandatory to put the object of logger class. Please explain

  • @JahidulIslam-zk1ho
    @JahidulIslam-zk1ho 6 років тому

    Nice tutorial -------

  • @shubhamjoshi1331
    @shubhamjoshi1331 6 років тому

    nice one

  • @VijaySingh-ve9gh
    @VijaySingh-ve9gh 6 років тому

    Thank you sir you videos are to good. but if possible.
    Can you add one more video on dependency injection
    thank you so much

  • @tanvir5075
    @tanvir5075 9 років тому +1

    You are a Boss!!
    Thanks Lot..

  • @raoshahid2483
    @raoshahid2483 9 років тому +1

    bht hi ala

  • @adeelshahid5667
    @adeelshahid5667 6 років тому

    Loved it really amazing the way u explained dependency injection thank u so much

  • @rohitgour2896
    @rohitgour2896 6 років тому

    Thanks for this concept, but I just want to know for the same example is it possible, could we use inheritance property instead of dependency injection concept (use parent class function or property inside the child class)?

  • @akashshah9998
    @akashshah9998 6 років тому

    Q Sir,...If class Dependent on 20-25 object ....How to handle parameter list

  • @deveshbajaj5827
    @deveshbajaj5827 6 років тому

    awsome

  • @akashkumar-ne6cx
    @akashkumar-ne6cx 4 роки тому

    Can we extend logger class to use its method in UserProfile class instead of dependency Injection technique

  • @tarunkmr145
    @tarunkmr145 4 роки тому

    sir what's the difference in dependency injection and inheritance as in both concepts we can call the methods then what's the main difference.

  • @pkmagento
    @pkmagento 6 років тому

    Nice

  • @boravivek
    @boravivek 8 років тому

    Thankyou for this Awesome Video , Understood almost Completely , Having Some Doubts :-
    1. We usually create object of a class like $logger = new logger; but in this video you created it like $logger = new logger(); , is there any special reason for that , as code is working fine without () aswell, as per previous videos we use () mostly to pass parameters for constructors , but in this video no parameters needed as there is no Construct in Logger Class. So Please Clarify it.
    2.We are Not Inheriting/Extendng the Logger Class in UserProfile Class but still we are able to access the log function of Logger Class in UserProfile Class , so its making me little bit confuse , can u explain this Part Aswell.
    Thank You For All of your awesome videos , Expecting a Reply to clear the Doubts soon , so please clear the doubts thanks.

    • @madhvendrasingh6393
      @madhvendrasingh6393 7 років тому +1

      Dragon Boyz
      1. In php, It is your choice to use ( ) when your constructor require no params,
      but must to use ( ) in java.
      2. As you can see clearly in the code , both classes are present at same level.
      will it be like that if you are going to use inheritance?
      If so then what you get would be absurd.
      that's why the code exists and hence the video.

    • @boravivek
      @boravivek 7 років тому

      Thankyou

  • @amarsingh-gn2lw
    @amarsingh-gn2lw 7 років тому +1

    thanks this video

  • @yagneshbhalala4857
    @yagneshbhalala4857 4 роки тому

    New Userprofile class mai logger variable pas kiye bina nhi kar sakte?

  • @viveksharma-ns2bl
    @viveksharma-ns2bl 4 роки тому

    Can you please explain dependency injection using Magento2 example.

  • @devthaker5000
    @devthaker5000 2 роки тому

    $logger is mentioned in Class UserProfile as "private $logger;". But when we do type-hinting, you mentioned Logger class. So how is it working??

  • @ChayonShaah
    @ChayonShaah 4 роки тому

    Great explanation , man :)

    • @tonyfox1316
      @tonyfox1316 3 роки тому

      i guess Im kind of randomly asking but does anybody know of a good place to watch newly released series online?

    • @saulbenedict6718
      @saulbenedict6718 3 роки тому

      @Tony Fox i watch on FlixZone. Just google for it =)

    • @kameronbryant9796
      @kameronbryant9796 3 роки тому

      @Saul Benedict Yea, been using flixzone for years myself :)

    • @tonyfox1316
      @tonyfox1316 3 роки тому

      @Saul Benedict Thanks, I signed up and it seems like they got a lot of movies there :D I appreciate it!!

    • @saulbenedict6718
      @saulbenedict6718 3 роки тому

      @Tony Fox No problem :D

  • @rahulagarwal968
    @rahulagarwal968 8 років тому

    I am confused that after understanding Core PHP , I should go for CodeIgnitor or Laravel ?? Can u please explain which framework is best ?

    • @PHPinHindi
      @PHPinHindi  8 років тому +3

      none of the frameworks are neither best nor worst.. all have their own of features. One suits for one application and the other suits for another one. Since you're new to frameworks.. I suggest you go for codeigniter first. As its easy to understand compared to Laravel.

    • @rahulagarwal968
      @rahulagarwal968 8 років тому

      So please tell me which framework is used for what ?? Example - for Ecommerce and social networking site.

  • @javascriptwar9525
    @javascriptwar9525 6 років тому

    sir i am still confusing this topic ..
    can you give animation example

  • @rohitsingh5853
    @rohitsingh5853 9 років тому +2

    Bro plzz share cakephp tutorials plz bro

  • @nishantdua5970
    @nishantdua5970 8 років тому

    sir dependency injection aur MVC model ek hi working ek hi hai kya?? please reply

    • @PHPinHindi
      @PHPinHindi  8 років тому +1

      +nishant dua nahi .. totally different..

    • @nishantdua5970
      @nishantdua5970 8 років тому

      +PHP in Hindi okie sir thanks

  • @nomikhan87
    @nomikhan87 7 років тому

    i am confued
    user profile class me private $logger; ko aapnay object kaha 7:08 timing pay
    question ye hay key isay object kese conside kr raay o aaap
    isay to variable hona chaiye
    please reply i would be grateful to you
    tanks for this tutorial

    • @PHPinHindi
      @PHPinHindi  7 років тому

      object bhi to variable mein hi store hota hai na.. jaise koi bhi aur value store hoti hai..

    • @irfansigns
      @irfansigns 7 років тому

      you mean aap ny ek new object k liye container banaya hai right?

  • @AsifKhan-qj2rw
    @AsifKhan-qj2rw 8 років тому

    In dependency injection vedio you take constructor and paas $logger as a parameter so where is the object of logger class. I don't understand this Sir Please help me

    • @madhvendrasingh6393
      @madhvendrasingh6393 7 років тому

      Asif Khan
      In first half of video, he created logger object in constructor of userprofile class made it to initialized.
      in later half he created logger object outside the close passed it as parameter to userprofile and there instance variable initialized.

  • @nitinbly
    @nitinbly 10 років тому +1

    hello thanks for the magic functions videos its really helpful. thanks a lot :)
    but today i also have a separate question apart oops or php .
    i have two drives in hard disk C & D would i install ubuntu in D drive or its compulsory that is must be C drive. in C drive i have win-7 and remaining space is only 10 GB in C drive. so can i use drive D if 30 GB space and fully free.

    • @PHPinHindi
      @PHPinHindi  10 років тому

      Yes, in-fact its not a good idea to install both OS in save partition. You should always prefer to installing one OS per partition.

    • @nitinbly
      @nitinbly 10 років тому

      yes but actually when i install in another drive then C drives generate an error that why i ask you because in all tutorials you are using Linux so i think you are the right person for the question apart that thanks for reply i have done :) n literally you really teach a well manner just waiting for the next video tutorial :)

  • @kumarsharmatul
    @kumarsharmatul 7 років тому

    dependency injection nhi aya samaj

  • @PHPHindi
    @PHPHindi 7 років тому

    Sir, I have learned a lot from your tutorial, and would be able to understand various core concepts. To be honest after watching your tutorials I got the interest towards programming. Sir currently I am working on Zend Framework-2 which seems to have some difficult Big Words kind of functionalities and how they are managed under the hood. I tried a lot to learn myself the core structure but only able to get some ideas, I have not found a very good community support for it.
    Please if you can make a series on ZEND2 or ZEND3 would be great because all the tutorials that I have gone through, just explains to imitate the things like you create this file and put that code and run etc.
    I want to know little more in detail about it as the way you explain the things.
    I will wait for your reply, Please response me back if or if you are not going to make the series on the same. Thank you

    • @PHPinHindi
      @PHPinHindi  7 років тому

      Thank you very much for the appreciation. Honestly speaking I don't know much about ZF as I've never worked on it. But most of the php frameworks, if not all, available in the market are based on OOPs and specifically MVC design pattern. So, if you've strong knowledge of OOP concept, it hardly matters which framework you're working with.. you can easily learn it. Or even build your own version of "Framework". And for video on ZF, I don't think I'll be able to cover it any time soon as I already have a lot of videos pending in pipeline. And can't make time for those.